diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-10-02 11:25:04 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-10-04 09:54:18 +0200 |
| commit | ee849a47cd5bda0db5cafef15e4679d1ddd173d2 (patch) | |
| tree | faeecfe212216380d4b859fb62c49e0371da7647 /mullvad-daemon/src/lib.rs | |
| parent | b71ec360998a29f08c1220de627d078fac575b7c (diff) | |
| download | mullvadvpn-ee849a47cd5bda0db5cafef15e4679d1ddd173d2.tar.xz mullvadvpn-ee849a47cd5bda0db5cafef15e4679d1ddd173d2.zip | |
Remove setting to leak traffic to apple networks
Diffstat (limited to 'mullvad-daemon/src/lib.rs')
| -rw-r--r-- | mullvad-daemon/src/lib.rs | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs index 94df78682b..e833f1b82c 100644 --- a/mullvad-daemon/src/lib.rs +++ b/mullvad-daemon/src/lib.rs @@ -380,9 +380,6 @@ pub enum DaemonCommand { ExportJsonSettings(ResponseTx<String, settings::patch::Error>), /// Request the current feature indicators. GetFeatureIndicators(oneshot::Sender<FeatureIndicators>), - /// Set if we should leak traffic to Apple services. - #[cfg(target_os = "macos")] - SetAppleServicesBypass(ResponseTx<(), settings::Error>, bool), } /// All events that can happen in the daemon. Sent from various threads and exposed interfaces. @@ -770,8 +767,6 @@ impl Daemon { reset_firewall: *target_state != TargetState::Secured, #[cfg(any(windows, target_os = "android", target_os = "macos"))] exclude_paths, - #[cfg(target_os = "macos")] - apple_services_bypass: settings.apple_services_bypass, }, parameters_generator.clone(), log_dir, @@ -1339,10 +1334,6 @@ impl Daemon { ApplyJsonSettings(tx, blob) => self.on_apply_json_settings(tx, blob).await, ExportJsonSettings(tx) => self.on_export_json_settings(tx), GetFeatureIndicators(tx) => self.on_get_feature_indicators(tx), - #[cfg(target_os = "macos")] - SetAppleServicesBypass(tx, enabled) => { - self.on_set_apple_services_bypass(tx, enabled).await - } } } @@ -2812,12 +2803,6 @@ impl Daemon { let (tx, _rx) = oneshot::channel(); self.send_tunnel_command(TunnelCommand::AllowLan(self.settings.allow_lan, tx)); - #[cfg(target_os = "macos")] - self.send_tunnel_command(TunnelCommand::AppleServicesBypass( - oneshot::channel().0, - self.settings.apple_services_bypass, - )); - let (tx, _rx) = oneshot::channel(); let dns = dns::addresses_from_options(&self.settings.tunnel_options.dns_options); self.send_tunnel_command(TunnelCommand::Dns(dns, tx)); @@ -2962,37 +2947,6 @@ impl Daemon { Self::oneshot_send(tx, feature_indicators, "get_feature_indicators response"); } - #[cfg(target_os = "macos")] - async fn on_set_apple_services_bypass( - &mut self, - tx: ResponseTx<(), settings::Error>, - enabled: bool, - ) { - let result = self - .settings - .update(|settings| settings.apple_services_bypass = enabled) - .await; - - match result { - Ok(settings_changed) => { - if settings_changed { - self.send_tunnel_command(TunnelCommand::AppleServicesBypass( - oneshot_map(tx, |tx, ()| { - Self::oneshot_send(tx, Ok(()), "set_apple_services_bypass response"); - }), - enabled, - )); - } else { - Self::oneshot_send(tx, Ok(()), "set_apple_services_bypass response"); - } - } - Err(e) => { - log::error!("{}", e.display_chain_with_msg("Unable to save settings")); - Self::oneshot_send(tx, Err(e), "set_apple_services_bypass response"); - } - } - } - /// Set the target state of the client. If it changed trigger the operations needed to /// progress towards that state. /// Returns a bool representing whether a state change was initiated. |
