Skip to content

Commit affff5e

Browse files
authored
Merge pull request #113 from jamesmcm/openvpnfilter
Filter out Windows-specific OpenVPN command
2 parents 32577c8 + 3ba393e commit affff5e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "vopono"
33
description = "Launch applications via VPN tunnels using temporary network namespaces"
4-
version = "0.8.7"
4+
version = "0.8.8"
55
authors = ["James McMurray <[email protected]>"]
66
edition = "2018"
77
license = "GPL-3.0-or-later"
@@ -25,7 +25,7 @@ serde = {version = "1", features = ["derive", "std"]}
2525
csv = "1"
2626
dialoguer ="0.9"
2727
regex = "1"
28-
ron = "0.6"
28+
ron = "0.7"
2929
walkdir = "2"
3030
# Must use rand 0.7 for compatibility with x25519-dalek for now
3131
rand = "0.7"
@@ -34,11 +34,11 @@ chrono = "0.4"
3434
compound_duration = "1"
3535
ipnet = {version = "2", features = ["serde"]}
3636
reqwest = {default-features = false, version = "0.11", features = ["blocking", "json", "rustls-tls"]}
37-
sysinfo = "0.20"
37+
sysinfo = "0.21"
3838
base64 = "0.13"
3939
x25519-dalek = "1"
40-
strum = "0.22"
41-
strum_macros = "0.22"
40+
strum = "0.23"
41+
strum_macros = "0.23"
4242
zip = "0.5"
4343
maplit = "1"
4444
webbrowser = "0.5"

src/openvpn.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ impl OpenVpn {
7676
debug!("Detected IPv6 enabled in /sys/module/ipv6/parameters/disable");
7777
}
7878

79+
// Ignore Windows-specific command
80+
command_vec.push("--pull-filter");
81+
command_vec.push("ignore");
82+
command_vec.push("block-outside-dns");
83+
7984
if disable_ipv6 || ipv6_disabled {
8085
debug!("IPv6 disabled, will pass pull-filter ignore to OpenVPN");
8186
command_vec.push("--pull-filter");

0 commit comments

Comments
 (0)