Skip to content

Commit 439b08d

Browse files
committed
Merge branch 'always-set-lockdown-mode-to-false-on-android-droid-1445'
2 parents b3e6b56 + 0c655dc commit 439b08d

File tree

1 file changed

+8
-1
lines changed
  • mullvad-daemon/src/settings

1 file changed

+8
-1
lines changed

mullvad-daemon/src/settings/mod.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ impl SettingsPersister {
114114

115115
// Auto-connect is managed by Android itself.
116116
settings.auto_connect = false;
117+
118+
// Lockdown mode is managed by the Android OS.
119+
settings.block_when_disconnected = false;
117120
}
118121
if crate::version::is_beta_version() {
119122
should_save |= !settings.show_beta_releases;
@@ -172,7 +175,11 @@ impl SettingsPersister {
172175

173176
// Protect the user by blocking the internet by default. Previous settings may
174177
// not have caused the daemon to enter the non-blocking disconnected state.
175-
settings.block_when_disconnected = true;
178+
// On android lockdown mode is handled by the OS so setting this to true
179+
// has no effect.
180+
if cfg!(not(target_os = "android")) {
181+
settings.block_when_disconnected = true;
182+
}
176183

177184
LoadSettingsResult {
178185
settings,

0 commit comments

Comments
 (0)