diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-06-17 21:14:35 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-06-26 12:13:44 +0200 |
commit | 20266b063c1be8818d4582bff7b59486551ee447 (patch) | |
tree | 2f7bd97624104e7defecd6d29fff8dad2446c0ce /pkg/vpn/main.go | |
parent | 9b8009cfaf6707d23a20494cd5467aed9c98513b (diff) |
[feat] pass initialization errors to gui
Diffstat (limited to 'pkg/vpn/main.go')
-rw-r--r-- | pkg/vpn/main.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go index ce599c9..9d59131 100644 --- a/pkg/vpn/main.go +++ b/pkg/vpn/main.go @@ -51,10 +51,13 @@ func Init() (*Bitmask, error) { } b := Bitmask{tempdir, statusCh, nil, bonafide, launch, "", nil} - err = b.StopVPN() - if err != nil { - return nil, err - } + /* + err = b.StopVPN() + if err != nil { + return nil, err + } + */ + err = ioutil.WriteFile(b.getCaCertPath(), config.CaCert, 0600) go b.openvpnManagement() |