diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2021-03-09 09:41:07 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2021-03-09 14:35:45 +0100 |
| commit | 335ee7ab10935f9d7acbfec1366b5c6b9a319df9 (patch) | |
| tree | 0f3ec6fa599e5acb1f8d8b2b9692345c330a7a4a | |
| parent | 92312e12954c9aef84db00aae0248134ff4abee2 (diff) | |
| download | mullvadvpn-335ee7ab10935f9d7acbfec1366b5c6b9a319df9.tar.xz mullvadvpn-335ee7ab10935f9d7acbfec1366b5c6b9a319df9.zip | |
Don't listen to OpenVPN UP event on non-Linux
| -rw-r--r-- | talpid-core/src/tunnel/openvpn/mod.rs | 1 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/src/lib.rs | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/talpid-core/src/tunnel/openvpn/mod.rs b/talpid-core/src/tunnel/openvpn/mod.rs index 1236efde5a..11219065b5 100644 --- a/talpid-core/src/tunnel/openvpn/mod.rs +++ b/talpid-core/src/tunnel/openvpn/mod.rs @@ -324,7 +324,6 @@ impl OpenVpnMonitor<OpenVpnCommand> { panic!("Failed to add routes"); } - #[cfg(target_os = "linux")] if let Err(error) = route_manager_handle.create_routing_rules(ipv6_enabled) { log::error!("{}", error.display_chain()); panic!("Failed to add routes"); diff --git a/talpid-openvpn-plugin/src/lib.rs b/talpid-openvpn-plugin/src/lib.rs index a630d06033..e0ddc0100f 100644 --- a/talpid-openvpn-plugin/src/lib.rs +++ b/talpid-openvpn-plugin/src/lib.rs @@ -35,6 +35,7 @@ pub enum Error { /// events. pub static INTERESTING_EVENTS: &'static [EventType] = &[ EventType::AuthFailed, + #[cfg(target_os = "linux")] EventType::Up, EventType::RouteUp, EventType::RoutePredown, |
