mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-14 13:47:24 +08:00
support ohos (#974)
* support ohos --------- Co-authored-by: FrankHan <2777926911@qq.com>
This commit is contained in:
@@ -520,7 +520,7 @@ impl<C: NatDstConnector> TcpProxy<C> {
|
||||
#[cfg(feature = "smoltcp")]
|
||||
if self.global_ctx.get_flags().use_smoltcp
|
||||
|| self.global_ctx.no_tun()
|
||||
|| cfg!(target_os = "android")
|
||||
|| cfg!(any(target_os = "android", target_env = "ohos"))
|
||||
{
|
||||
// use smoltcp network stack
|
||||
self.local_port
|
||||
|
||||
Reference in New Issue
Block a user