diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-04-24 10:26:56 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-04-24 10:26:56 +0200 |
| commit | e59bd99fe2d9671eaacfa8dd4c9ecd2b1c6aa682 (patch) | |
| tree | 6eb49c6966ec25e41980ecf94c3c15a91a2894c7 | |
| parent | 9e6fd37cb372f90fe2ac7316bac9f6dce3a42590 (diff) | |
| parent | b18c8cca3c064131101f3165482ad4a87b10d30e (diff) | |
| download | mullvadvpn-e59bd99fe2d9671eaacfa8dd4c9ecd2b1c6aa682.tar.xz mullvadvpn-e59bd99fe2d9671eaacfa8dd4c9ecd2b1c6aa682.zip | |
Merge branch 'remove-same-ip-logging'
| -rw-r--r-- | mullvad-daemon/src/tunnel.rs | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/mullvad-daemon/src/tunnel.rs b/mullvad-daemon/src/tunnel.rs index ab2efb62cf..35094bec94 100644 --- a/mullvad-daemon/src/tunnel.rs +++ b/mullvad-daemon/src/tunnel.rs @@ -1,10 +1,4 @@ -use std::{ - future::Future, - net::{IpAddr, Ipv4Addr, Ipv6Addr}, - pin::Pin, - str::FromStr, - sync::Arc, -}; +use std::{future::Future, net::IpAddr, pin::Pin, sync::Arc}; use tokio::sync::Mutex; @@ -13,7 +7,6 @@ use mullvad_types::{ endpoint::MullvadWireguardEndpoint, location::GeoIpLocation, relay_list::Relay, settings::TunnelOptions, }; -use std::sync::LazyLock; use talpid_core::tunnel_state_machine::TunnelParametersGenerator; #[cfg(not(target_os = "android"))] use talpid_types::net::{ @@ -27,18 +20,6 @@ use talpid_types::{net::IpAvailability, tunnel::ParameterGenerationError, ErrorE use crate::device::{AccountManagerHandle, Error as DeviceError, PrivateAccountAndDevice}; -/// The IP-addresses that the client uses when it connects to a server that supports the -/// "Same IP" functionality. This means all clients have the same in-tunnel IP on these -/// servers. This improves anonymity since the in-tunnel IP will not be unique to a specific -/// peer. -static SAME_IP_V4: LazyLock<IpAddr> = - LazyLock::new(|| Ipv4Addr::from_str("10.127.255.254").unwrap().into()); -static SAME_IP_V6: LazyLock<IpAddr> = LazyLock::new(|| { - Ipv6Addr::from_str("fc00:bbbb:bbbb:bb01:ffff:ffff:ffff:ffff") - .unwrap() - .into() -}); - #[derive(thiserror::Error, Debug)] pub enum Error { #[error("Not logged in on a valid device")] @@ -260,13 +241,6 @@ impl InnerParametersGenerator { private_key: data.device.wg_data.private_key, addresses: vec![IpAddr::from(tunnel_ipv4), IpAddr::from(tunnel_ipv6)], }; - // FIXME: Used for debugging purposes during the migration to same IP. Remove when - // the migration is over. - if tunnel_ipv4 == *SAME_IP_V4 || tunnel_ipv6 == *SAME_IP_V6 { - log::debug!("Same IP is being used"); - } else { - log::debug!("Same IP is NOT being used"); - } wireguard::TunnelParameters { connection: wireguard::ConnectionConfig { |
