Browse Source
Add an optional `udpgw_server` JString parameter to the Android JNI `run()` function. When non-empty (e.g. "198.18.0.1:7300"), tun2proxy will forward UDP packets via the udpgw protocol through a TCP connection to the specified address. This enables Android VPN apps using tun2proxy to leverage the existing udpgw support for UDP forwarding (DNS, QUIC, VoIP) without needing to call `tun2proxy_run_with_cli_args` or fork the crate. The parameter is gated behind `#[cfg(feature = "udpgw")]` — when the feature is disabled, the extra JString argument is accepted but ignored, keeping the JNI signature stable.pull/247/head
1 changed files with 16 additions and 0 deletions
Loading…
Reference in new issue