feat: support compile for iOS (#1777)

This commit is contained in:
Chenx Dust
2026-01-11 16:36:58 +08:00
committed by GitHub
parent f4f591d14c
commit 48c5c23f9b
7 changed files with 50 additions and 25 deletions
+5 -1
View File
@@ -31,7 +31,11 @@ async fn set_bind_addr_for_peer_connector(
is_ipv4: bool,
ip_collector: &Arc<IPCollector>,
) {
if cfg!(any(target_os = "android", target_env = "ohos")) {
if cfg!(any(
target_os = "android",
target_os = "ios",
target_env = "ohos"
)) {
return;
}