summaryrefslogtreecommitdiff
path: root/pkg/vpn
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-06-22 17:11:56 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-06-22 18:04:47 +0200
commit514a6a8a1f1188a8dd95c79db150711cdc30bc48 (patch)
tree114f2ad86a2f5684a3aea817fbc90202d45037af /pkg/vpn
parent45c13d49936009f095629ef6f6d82aae768b20f3 (diff)
[bug] keep persist-tun
Diffstat (limited to 'pkg/vpn')
-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...)
}