diff options
| author | Albin <albin@mullvad.net> | 2024-10-16 15:01:43 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2024-10-16 15:01:43 +0200 |
| commit | 439b08db5d00af66ea25f2601c6eaadbb85cf8be (patch) | |
| tree | 4b06a3b0920470084daf250af3b7bb4cbf5bf5ec | |
| parent | b3e6b5626a983a71954718244600f39af457e00d (diff) | |
| parent | 0c655dcd520543f14c7cce9c573f56f24e687c41 (diff) | |
| download | mullvadvpn-439b08db5d00af66ea25f2601c6eaadbb85cf8be.tar.xz mullvadvpn-439b08db5d00af66ea25f2601c6eaadbb85cf8be.zip | |
Merge branch 'always-set-lockdown-mode-to-false-on-android-droid-1445'
| -rw-r--r-- | mullvad-daemon/src/settings/mod.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mullvad-daemon/src/settings/mod.rs b/mullvad-daemon/src/settings/mod.rs index 6a0f850e3d..d03f5a5204 100644 --- a/mullvad-daemon/src/settings/mod.rs +++ b/mullvad-daemon/src/settings/mod.rs @@ -114,6 +114,9 @@ impl SettingsPersister { // Auto-connect is managed by Android itself. settings.auto_connect = false; + + // Lockdown mode is managed by the Android OS. + settings.block_when_disconnected = false; } if crate::version::is_beta_version() { should_save |= !settings.show_beta_releases; @@ -172,7 +175,11 @@ impl SettingsPersister { // Protect the user by blocking the internet by default. Previous settings may // not have caused the daemon to enter the non-blocking disconnected state. - settings.block_when_disconnected = true; + // On android lockdown mode is handled by the OS so setting this to true + // has no effect. + if cfg!(not(target_os = "android")) { + settings.block_when_disconnected = true; + } LoadSettingsResult { settings, |
