fix(client): enable TUN inbound compilation on Android

This commit is contained in:
ospab 2026-06-23 01:24:43 +03:00
parent 766401b219
commit 0b9dd8f400
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ use crate::tunnel::router::{Router, Session};
use crate::tunnel::outbounds::OutboundManager; use crate::tunnel::outbounds::OutboundManager;
use tokio::sync::watch; use tokio::sync::watch;
#[cfg(any(target_os = "windows", target_os = "linux"))] #[cfg(any(target_os = "windows", target_os = "linux", target_os = "android"))]
pub async fn run_tun_inbound( pub async fn run_tun_inbound(
config: ClientConfig, config: ClientConfig,
inbound_config: InboundConfig, inbound_config: InboundConfig,
@ -300,7 +300,7 @@ pub async fn run_tun_inbound(
Ok(()) Ok(())
} }
#[cfg(not(any(target_os = "windows", target_os = "linux")))] #[cfg(not(any(target_os = "windows", target_os = "linux", target_os = "android")))]
pub async fn run_tun_inbound( pub async fn run_tun_inbound(
_config: ClientConfig, _config: ClientConfig,
_inbound_config: InboundConfig, _inbound_config: InboundConfig,

@ -1 +1 @@
Subproject commit 43b4935fd2addc284a5ae8719824652f9063b95d Subproject commit 99e1c6ff5406a1ad015f65bb2aa45be11487342e