From bc520dd9d7ae60d663dfcd978d125df74201fc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Thu, 23 May 2024 10:08:41 +0200 Subject: [PATCH] Enable quantum-resistant tunnels by default on macOS Was already enabled by default on Linux, now we roll it out for macOS also --- mullvad-types/src/wireguard.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mullvad-types/src/wireguard.rs b/mullvad-types/src/wireguard.rs index 008b7a475c8d..1af50abadc4c 100644 --- a/mullvad-types/src/wireguard.rs +++ b/mullvad-types/src/wireguard.rs @@ -9,9 +9,9 @@ pub const MAX_ROTATION_INTERVAL: Duration = Duration::from_secs(30 * 24 * 60 * 6 pub const DEFAULT_ROTATION_INTERVAL: Duration = MAX_ROTATION_INTERVAL; /// Whether to enable or disable quantum resistant tunnels when the setting is set to -/// `QuantumResistantState::Auto`. It is currently enabled by default on Linux but disabled on all -/// other platforms. -const QUANTUM_RESISTANT_AUTO_STATE: bool = cfg!(target_os = "linux"); +/// `QuantumResistantState::Auto`. It is currently enabled by default on Linux and macOS, +/// but disabled on all other platforms. +const QUANTUM_RESISTANT_AUTO_STATE: bool = cfg!(any(target_os = "linux", target_os = "macos")); #[derive(Serialize, Deserialize, Copy, Clone, Debug, PartialEq, Eq)] #[serde(rename_all = "lowercase")]