diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-09-04 09:43:12 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-09-05 07:08:21 -0300 |
| commit | 76e75265ee135ed44e7fefb594101314655e45d0 (patch) | |
| tree | ff34d540cf78e3b4fbea86806e99afc3dcb0c18a | |
| parent | b59181987f27a9469b636e48c1b2930fd816a0e8 (diff) | |
| download | mullvadvpn-76e75265ee135ed44e7fefb594101314655e45d0.tar.xz mullvadvpn-76e75265ee135ed44e7fefb594101314655e45d0.zip | |
Rename settings function to enable IPv6
| -rw-r--r-- | mullvad-daemon/src/main.rs | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/settings.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-daemon/src/main.rs b/mullvad-daemon/src/main.rs index 68a487cb7c..2fb27c3048 100644 --- a/mullvad-daemon/src/main.rs +++ b/mullvad-daemon/src/main.rs @@ -550,7 +550,7 @@ impl Daemon { } fn on_set_enable_ipv6(&mut self, tx: OneshotSender<()>, enable_ipv6: bool) -> Result<()> { - let save_result = self.settings.set_openvpn_enable_ipv6(enable_ipv6); + let save_result = self.settings.set_enable_ipv6(enable_ipv6); match save_result.chain_err(|| "Unable to save settings") { Ok(settings_changed) => { diff --git a/mullvad-daemon/src/settings.rs b/mullvad-daemon/src/settings.rs index 4256735cdf..a51002d782 100644 --- a/mullvad-daemon/src/settings.rs +++ b/mullvad-daemon/src/settings.rs @@ -180,7 +180,7 @@ impl Settings { } } - pub fn set_openvpn_enable_ipv6(&mut self, enable_ipv6: bool) -> Result<bool> { + 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; self.save().map(|_| true) |
