Skip to content

Commit

Permalink
Change auto quantum resistant state to enabled on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Sep 17, 2024
1 parent 196061b commit 8475b05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Line wrap the file at 100 chars. Th
multihop, quantum-resistant tunnels, or DAITA.
- Improved output format of `mullvad status` command, which now also prints feature indicators.

#### Windows
- Enable quantum resistant tunnels by default (when set to `auto`).

#### macOS
- Disable split tunnel interface when disconnected. This prevents traffic from being sent through
the daemon when the VPN is disconnected.
Expand Down
10 changes: 7 additions & 3 deletions mullvad-types/src/wireguard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ 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 and macOS,
/// but disabled on all other platforms.
const QUANTUM_RESISTANT_AUTO_STATE: bool = cfg!(any(target_os = "linux", target_os = "macos"));
/// `QuantumResistantState::Auto`. It is currently enabled by default on desktop,
/// but disabled on Android.
const QUANTUM_RESISTANT_AUTO_STATE: bool = cfg!(any(
target_os = "linux",
target_os = "macos",
target_os = "windows"
));

#[derive(Serialize, Deserialize, Default, Copy, Clone, Debug, PartialEq, Eq)]
#[serde(rename_all = "lowercase")]
Expand Down

0 comments on commit 8475b05

Please sign in to comment.