summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-09-04 09:47:43 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-09-05 07:08:22 -0300
commit433f34813b2085ce6c20387c8eeb5818fa3dfd8f (patch)
tree32861b1710287918b3c5b99481f3d1a864608056 /mullvad-daemon
parent76e75265ee135ed44e7fefb594101314655e45d0 (diff)
downloadmullvadvpn-433f34813b2085ce6c20387c8eeb5818fa3dfd8f.tar.xz
mullvadvpn-433f34813b2085ce6c20387c8eeb5818fa3dfd8f.zip
Move `enable_ipv6` to `TunnelOptions`
Diffstat (limited to 'mullvad-daemon')
-rw-r--r--mullvad-daemon/src/settings.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-daemon/src/settings.rs b/mullvad-daemon/src/settings.rs
index a51002d782..216d18f4d8 100644
--- a/mullvad-daemon/src/settings.rs
+++ b/mullvad-daemon/src/settings.rs
@@ -181,8 +181,8 @@ impl Settings {
}
pub fn set_enable_ipv6(&mut self, enable_ipv6: bool) -> Result<bool> {
- if self.tunnel_options.openvpn.enable_ipv6 != enable_ipv6 {
- self.tunnel_options.openvpn.enable_ipv6 = enable_ipv6;
+ if self.tunnel_options.enable_ipv6 != enable_ipv6 {
+ self.tunnel_options.enable_ipv6 = enable_ipv6;
self.save().map(|_| true)
} else {
Ok(false)