diff --git a/mullvad-types/src/wireguard.rs b/mullvad-types/src/wireguard.rs index 12f68566bd80..8f853aed8619 100644 --- a/mullvad-types/src/wireguard.rs +++ b/mullvad-types/src/wireguard.rs @@ -85,28 +85,17 @@ pub struct QuantumResistantStateParseError; pub struct DaitaSettings { pub enabled: bool, - #[cfg_attr(target_os = "android", serde(skip))] - #[serde(default = "DaitaSettings::default_use_multihop_if_necessary")] /// Whether to use multihop if the selected relay is not DAITA-compatible. Note that this is /// the inverse of of "Direct only" in the GUI. pub use_multihop_if_necessary: bool, } -#[cfg(daita)] -impl DaitaSettings { - /// This setting should be enabled by default, expect on Android where multihop is not - /// supported. - const fn default_use_multihop_if_necessary() -> bool { - cfg!(not(target_os = "android")) - } -} - #[cfg(daita)] impl Default for DaitaSettings { fn default() -> Self { Self { enabled: false, - use_multihop_if_necessary: Self::default_use_multihop_if_necessary(), + use_multihop_if_necessary: true, } } }