diff --git a/mullvad-types/src/wireguard.rs b/mullvad-types/src/wireguard.rs index 12f68566bd80..365de49ea4c6 100644 --- a/mullvad-types/src/wireguard.rs +++ b/mullvad-types/src/wireguard.rs @@ -85,7 +85,6 @@ 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. @@ -94,10 +93,9 @@ pub struct DaitaSettings { #[cfg(daita)] impl DaitaSettings { - /// This setting should be enabled by default, expect on Android where multihop is not - /// supported. + /// This setting should be enabled by default. const fn default_use_multihop_if_necessary() -> bool { - cfg!(not(target_os = "android")) + true } }