File tree 1 file changed +8
-1
lines changed
mullvad-daemon/src/settings
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ impl SettingsPersister {
114
114
115
115
// Auto-connect is managed by Android itself.
116
116
settings. auto_connect = false ;
117
+
118
+ // Lockdown mode is managed by the Android OS.
119
+ settings. block_when_disconnected = false ;
117
120
}
118
121
if crate :: version:: is_beta_version ( ) {
119
122
should_save |= !settings. show_beta_releases ;
@@ -172,7 +175,11 @@ impl SettingsPersister {
172
175
173
176
// Protect the user by blocking the internet by default. Previous settings may
174
177
// 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
+ }
176
183
177
184
LoadSettingsResult {
178
185
settings,
You can’t perform that action at this time.
0 commit comments