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
@@ -526,7 +526,11 @@ impl<C: NatDstConnector> TcpProxy<C> {
#[cfg(feature = "smoltcp")]
if self.global_ctx.get_flags().use_smoltcp
|| self.global_ctx.no_tun()
|| cfg!(any(target_os = "android", target_env = "ohos"))
|| cfg!(any(
target_os = "android",
target_os = "ios",
target_env = "ohos"
))
{
// use smoltcp network stack