summaryrefslogtreecommitdiff
path: root/pkg/vpn/main.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-05-17 12:53:24 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-05-17 17:52:46 +0200
commit083f4095319b734f33f3e28a9f3234ff9cf6a7d7 (patch)
treed6e81c51862f1a7157d8e1de719e214df579104d /pkg/vpn/main.go
parent1d0bdcd6d82b1edcb56268198b242a5814a04fd9 (diff)
[feat] reuse certificate if found in config folder
Diffstat (limited to 'pkg/vpn/main.go')
-rw-r--r--pkg/vpn/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go
index f40366c..826e5d4 100644
--- a/pkg/vpn/main.go
+++ b/pkg/vpn/main.go
@@ -68,7 +68,7 @@ func Init() (*Bitmask, error) {
}
*/
- err = ioutil.WriteFile(b.getCaCertPath(), config.CaCert, 0600)
+ err = ioutil.WriteFile(b.getTempCaCertPath(), config.CaCert, 0600)
go b.openvpnManagement()
return &b, err