summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helpers/bitmask-root1
-rw-r--r--pkg/vpn/openvpn.go3
2 files changed, 3 insertions, 1 deletions
diff --git a/helpers/bitmask-root b/helpers/bitmask-root
index ed0fe8e..6bb97e2 100644
--- a/helpers/bitmask-root
+++ b/helpers/bitmask-root
@@ -167,6 +167,7 @@ ALLOWED_FLAGS = {
"--verb": ["NUMBER"],
"--management-client": [],
"--tun-ipv6": [],
+ "--float: [],
}
PARAM_FORMATS = {
diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go
index 673dc2c..d4e6330 100644
--- a/pkg/vpn/openvpn.go
+++ b/pkg/vpn/openvpn.go
@@ -181,7 +181,8 @@ func (b *Bitmask) startOpenVPN() error {
"--ca", b.getTempCaCertPath(),
"--cert", b.certPemPath,
"--key", b.certPemPath,
- "--persist-tun")
+ "--persist-tun",
+ "--float")
/* persist-tun is needed for reconnects */
return b.launch.openvpnStart(arg...)
}