From 0b9dd8f4000dc455f252be353b8d2d55370b30c0 Mon Sep 17 00:00:00 2001 From: ospab Date: Tue, 23 Jun 2026 01:24:43 +0300 Subject: [PATCH] fix(client): enable TUN inbound compilation on Android --- ostp-client/src/tunnel/inbounds/tun.rs | 4 ++-- ostp.wiki | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ostp-client/src/tunnel/inbounds/tun.rs b/ostp-client/src/tunnel/inbounds/tun.rs index 9762569..5ef7462 100644 --- a/ostp-client/src/tunnel/inbounds/tun.rs +++ b/ostp-client/src/tunnel/inbounds/tun.rs @@ -6,7 +6,7 @@ use crate::tunnel::router::{Router, Session}; use crate::tunnel::outbounds::OutboundManager; 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( config: ClientConfig, inbound_config: InboundConfig, @@ -300,7 +300,7 @@ pub async fn run_tun_inbound( 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( _config: ClientConfig, _inbound_config: InboundConfig, diff --git a/ostp.wiki b/ostp.wiki index 43b4935..99e1c6f 160000 --- a/ostp.wiki +++ b/ostp.wiki @@ -1 +1 @@ -Subproject commit 43b4935fd2addc284a5ae8719824652f9063b95d +Subproject commit 99e1c6ff5406a1ad015f65bb2aa45be11487342e