summaryrefslogtreecommitdiff
path: root/pkg/vpn/openvpn.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2023-03-08 11:26:20 +0100
committerkali kaneko (leap communications) <kali@leap.se>2023-03-08 11:58:12 +0100
commitffa9ab61f478e0ddfd03f00f3dbc3975c7652a8d (patch)
treeb497a9bdcc863b802bb1ee55e5e7337bc827e661 /pkg/vpn/openvpn.go
parentda0621717b7bf16144be5c01dddbee4747a82867 (diff)
bug: avoid crash when gateways not initialzedmain
fix also wrong call to sort by tz - should prefer menshen.
Diffstat (limited to 'pkg/vpn/openvpn.go')
-rw-r--r--pkg/vpn/openvpn.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go
index 29ecac5..18a61b8 100644
--- a/pkg/vpn/openvpn.go
+++ b/pkg/vpn/openvpn.go
@@ -339,7 +339,7 @@ func (b *Bitmask) getCert() (certPath string, err error) {
// Explicit call to GetGateways, to be able to fetch them all before starting the vpn
func (b *Bitmask) fetchGateways() {
- log.Println("Fetching gateways...")
+ log.Printf("Fetching gateways (%s)...", b.transport)
_, err := b.bonafide.GetAllGateways(b.transport)
if err != nil {
log.Println("ERROR Cannot fetch gateways")