From b9f10942ed41a95ba97743c66a636bc916d1e450 Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Mon, 9 Dec 2024 14:24:20 +0100 Subject: [PATCH] Set direct only default to false on android --- mullvad-types/src/wireguard.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 } }