From 514a6a8a1f1188a8dd95c79db150711cdc30bc48 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Tue, 22 Jun 2021 17:11:56 +0200 Subject: [bug] keep persist-tun --- pkg/vpn/openvpn.go | 5 +++-- 1 file 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...) } -- cgit v1.2.3