mirror of https://github.com/ospab/ostp.git
fix(client): enable TUN inbound compilation on Android
This commit is contained in:
parent
766401b219
commit
0b9dd8f400
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 43b4935fd2addc284a5ae8719824652f9063b95d
|
||||
Subproject commit 99e1c6ff5406a1ad015f65bb2aa45be11487342e
|
||||
Loading…
Reference in New Issue