diff options
| author | David Göransson <david.goransson@mullvad.net> | 2025-02-25 14:07:59 +0100 |
|---|---|---|
| committer | David Göransson <david.goransson@mullvad.net> | 2025-02-25 14:46:39 +0100 |
| commit | dc547d14a9382faa33f6cf809d9aa80863d81148 (patch) | |
| tree | 904cb7b04ad375717b30603f0a1df73a07967fef | |
| parent | 60ccaee30c558ec05dbe36224cdb66464fab4272 (diff) | |
| download | mullvadvpn-dc547d14a9382faa33f6cf809d9aa80863d81148.tar.xz mullvadvpn-dc547d14a9382faa33f6cf809d9aa80863d81148.zip | |
Fix comment about routes on android
| -rw-r--r-- | talpid-wireguard/src/wireguard_go/mod.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/talpid-wireguard/src/wireguard_go/mod.rs b/talpid-wireguard/src/wireguard_go/mod.rs index 6e082870f4..f9c3f86403 100644 --- a/talpid-wireguard/src/wireguard_go/mod.rs +++ b/talpid-wireguard/src/wireguard_go/mod.rs @@ -366,7 +366,6 @@ impl WgGoTunnel { tun_config.ipv6_gateway = config.ipv6_gateway; tun_config.mtu = config.mtu; - // Route everything into the tunnel and have wireguard-go act as a firewall. #[cfg(not(target_os = "android"))] { tun_config.routes = routes.collect(); @@ -374,6 +373,9 @@ impl WgGoTunnel { #[cfg(target_os = "android")] { + // Route everything into the tunnel and have wireguard-go act as a firewall when + // blocking. These will not necessarily be the actual routes used by android. Those will + // be generated at a later stage e.g. if Local Network Sharing is enabled. tun_config.routes = vec!["0.0.0.0/0".parse().unwrap(), "::/0".parse().unwrap()]; } @@ -412,7 +414,7 @@ impl WgGoTunnel { .map_err(|e| TunnelError::FatalStartWireguardError(Box::new(e)))?; let (mut tunnel_device, tunnel_fd) = Self::get_tunnel(Arc::clone(&tun_provider), config)?; - let is_new_tunnel = tunnel_device.is_new_tunnel; + let is_new_tunnel = tunnel_device.is_new; let interface_name: String = tunnel_device .interface_name() @@ -474,7 +476,7 @@ impl WgGoTunnel { .map_err(|e| TunnelError::FatalStartWireguardError(Box::new(e)))?; let (mut tunnel_device, tunnel_fd) = Self::get_tunnel(Arc::clone(&tun_provider), config)?; - let is_new_tunnel = tunnel_device.is_new_tunnel; + let is_new_tunnel = tunnel_device.is_new; let interface_name: String = tunnel_device .interface_name() |
