summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2021-02-15 13:25:41 +0000
committerEmīls <emils@mullvad.net>2021-02-15 13:25:47 +0000
commitfeb1bc29ec2ca827ad8354939762a290105dc066 (patch)
treed684693d6f7dd0fbf9b944c5262707e13be8e10d
parent41d144587f76e5de38ca1670d9ee37030eff2bbc (diff)
downloadmullvadvpn-feb1bc29ec2ca827ad8354939762a290105dc066.tar.xz
mullvadvpn-feb1bc29ec2ca827ad8354939762a290105dc066.zip
Fix issue with conditional compilation
-rw-r--r--talpid-core/src/tunnel/openvpn/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/talpid-core/src/tunnel/openvpn/mod.rs b/talpid-core/src/tunnel/openvpn/mod.rs
index 3446c6d0d6..c880ad7546 100644
--- a/talpid-core/src/tunnel/openvpn/mod.rs
+++ b/talpid-core/src/tunnel/openvpn/mod.rs
@@ -295,7 +295,9 @@ impl OpenVpnMonitor<OpenVpnCommand> {
#[cfg(target_os = "linux")]
let route_manager_handle = route_manager.handle().map_err(Error::SetupRoutingError)?;
+ #[cfg(target_os = "linux")]
let ipv6_enabled = params.generic_options.enable_ipv6;
+
let on_openvpn_event = move |event, env: HashMap<String, String>| {
#[cfg(target_os = "linux")]
if event == openvpn_plugin::EventType::Up {