summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/vpn/openvpn.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go
index 1a92d66..1a34c22 100644
--- a/pkg/vpn/openvpn.go
+++ b/pkg/vpn/openvpn.go
@@ -169,8 +169,9 @@ func (b *Bitmask) startOpenVPN() error {
"--management", openvpnManagementAddr, openvpnManagementPort,
"--ca", b.getTempCaCertPath(),
"--cert", b.certPemPath,
- "--key", b.certPemPath)
- //"--persist-tun")
+ "--key", b.certPemPath,
+ "--persist-tun")
+ /* persist-tun is needed for reconnects */
return b.launch.openvpnStart(arg...)
}