summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/process/openvpn.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/talpid-core/src/process/openvpn.rs b/talpid-core/src/process/openvpn.rs
index 409cc605a7..8c3fae8f6a 100644
--- a/talpid-core/src/process/openvpn.rs
+++ b/talpid-core/src/process/openvpn.rs
@@ -184,6 +184,16 @@ impl OpenVpnCommand {
args.push(OsString::from(mssfix.to_string()));
}
+ if !self.tunnel_options.enable_ipv6 {
+ args.push(OsString::from("--pull-filter"));
+ args.push(OsString::from("ignore"));
+ args.push(OsString::from("route-ipv6"));
+
+ args.push(OsString::from("--pull-filter"));
+ args.push(OsString::from("ignore"));
+ args.push(OsString::from("ifconfig-ipv6"));
+ }
+
if let Some(ref tunnel_device) = self.tunnel_alias {
args.push(OsString::from("--dev-node"));
args.push(tunnel_device.clone());