support ohos (#974)

* support ohos

---------

Co-authored-by: FrankHan <2777926911@qq.com>
This commit is contained in:
韩嘉乐
2025-07-02 09:44:45 +08:00
committed by GitHub
parent bf021a9ead
commit 01e491ec07
22 changed files with 668 additions and 21 deletions

View File

@@ -29,7 +29,7 @@ async fn set_bind_addr_for_peer_connector(
is_ipv4: bool,
ip_collector: &Arc<IPCollector>,
) {
if cfg!(target_os = "android") {
if cfg!(any(target_os = "android", target_env = "ohos")) {
return;
}