We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccaff30 + d8922e0 commit b6f8e07Copy full SHA for b6f8e07
talpid-wireguard/src/wireguard_go/mod.rs
@@ -361,8 +361,13 @@ impl WgGoTunnel {
361
tun_config.addresses = config.tunnel.addresses.clone();
362
tun_config.ipv4_gateway = config.ipv4_gateway;
363
tun_config.ipv6_gateway = config.ipv6_gateway;
364
- tun_config.routes = routes.collect();
365
tun_config.mtu = config.mtu;
+ tun_config.routes = if cfg!(target_os = "android") {
366
+ // Route everything into the tunnel and have wireguard-go act as a firewall.
367
+ vec!["0.0.0.0/0".parse().unwrap(), "::/0".parse().unwrap()]
368
+ } else {
369
+ routes.collect()
370
+ };
371
372
for _ in 1..=MAX_PREPARE_TUN_ATTEMPTS {
373
let tunnel_device = tun_provider
0 commit comments