diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-03-24 15:54:45 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-03-24 17:39:14 +0000 |
| commit | cc074a58c77d49dfcdd19841ff1c4b1e25408c67 (patch) | |
| tree | e7f2e1f3b5aa4bc19930e36e373d57438f34683b | |
| parent | d0d4248cbbc43fddb33bb05a98ad180a83c35c85 (diff) | |
| download | mullvadvpn-cc074a58c77d49dfcdd19841ff1c4b1e25408c67.tar.xz mullvadvpn-cc074a58c77d49dfcdd19841ff1c4b1e25408c67.zip | |
Force IPv6 to be always enabled on Android
| -rw-r--r-- | mullvad-daemon/src/settings.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mullvad-daemon/src/settings.rs b/mullvad-daemon/src/settings.rs index d61eb1c204..df0ee0b996 100644 --- a/mullvad-daemon/src/settings.rs +++ b/mullvad-daemon/src/settings.rs @@ -16,7 +16,13 @@ use talpid_core::logging::windows::log_sink; pub fn load() -> Settings { match Settings::load() { - Ok(settings) => settings, + Ok(mut settings) => { + // Force IPv6 to be enabled on Android + if cfg!(target_os = "android") { + let _ = settings.set_enable_ipv6(true); + } + settings + } #[cfg(windows)] Err(SettingsError::ReadError(ref _path, ref e)) if e.kind() == ErrorKind::NotFound => { info!( |
