Skip to content

Commit

Permalink
Enable quantum-resistant tunnels by default on macOS
Browse files Browse the repository at this point in the history
Was already enabled by default on Linux, now we roll it out for macOS
also
  • Loading branch information
faern authored and dlon committed Jul 25, 2024
1 parent 0da1615 commit bc520dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mullvad-types/src/wireguard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit bc520dd

Please sign in to comment.