summaryrefslogtreecommitdiff
path: root/pkg/vpn/main.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-06-22 17:57:29 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-06-22 18:04:48 +0200
commit9f1807c2c053e3b57881d42ebf58ec26dfee1b1d (patch)
tree70abd66546c6ad1f49edfc032eaf9f1cd8ca5d30 /pkg/vpn/main.go
parent514a6a8a1f1188a8dd95c79db150711cdc30bc48 (diff)
[bug] populate gateways early on
- Closes: #511
Diffstat (limited to 'pkg/vpn/main.go')
-rw-r--r--pkg/vpn/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vpn/main.go b/pkg/vpn/main.go
index 826e5d4..3a1f521 100644
--- a/pkg/vpn/main.go
+++ b/pkg/vpn/main.go
@@ -69,8 +69,9 @@ func Init() (*Bitmask, error) {
*/
err = ioutil.WriteFile(b.getTempCaCertPath(), config.CaCert, 0600)
-
+ go b.fetchGateways()
go b.openvpnManagement()
+
return &b, err
}