summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2024-10-16 11:08:47 +0200
committerAlbin <albin@mullvad.net>2024-10-16 15:01:08 +0200
commit0c655dcd520543f14c7cce9c573f56f24e687c41 (patch)
tree4b06a3b0920470084daf250af3b7bb4cbf5bf5ec
parentb3e6b5626a983a71954718244600f39af457e00d (diff)
downloadmullvadvpn-0c655dcd520543f14c7cce9c573f56f24e687c41.tar.xz
mullvadvpn-0c655dcd520543f14c7cce9c573f56f24e687c41.zip
Set block_when_disconnected to always be false on android
-rw-r--r--mullvad-daemon/src/settings/mod.rs9
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,