diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-12-23 00:43:29 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-23 00:43:40 +0100 |
commit | bddadc7323d6467f5233f26b97652fe671d77eed (patch) | |
tree | 7f5aba2a33e852a2be04ff3e6bbd0383376d91f1 /pkg/vpn/bonafide/gateways.go | |
parent | d83fd91d6293386867cc908f05b5f3f4d95a7053 (diff) |
[ui] expose bonafide+snowflake bootstrap events
Diffstat (limited to 'pkg/vpn/bonafide/gateways.go')
-rw-r--r-- | pkg/vpn/bonafide/gateways.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkg/vpn/bonafide/gateways.go b/pkg/vpn/bonafide/gateways.go index c442e72..25ab027 100644 --- a/pkg/vpn/bonafide/gateways.go +++ b/pkg/vpn/bonafide/gateways.go @@ -306,16 +306,17 @@ func (p *gatewayPool) getBestLocation(transport string, tz int) string { } func (p *gatewayPool) getAll(transport string, tz int) ([]Gateway, error) { - /* - if (&gatewayPool{} == p) { - log.Println("getAll tried to access uninitialized struct") - return []Gateway{}, nil - } - */ + if (&gatewayPool{} == p) { + log.Println("getAll tried to access uninitialized struct") + return []Gateway{}, nil + } + log.Println(">>> in getAll") + log.Println("seems to be initialized...") if p.recommended == nil || len(p.recommended) == 0 { return p.getGatewaysFromMenshen(transport, 999) } + log.Println(">>> by timezone") return p.getGatewaysByTimezone(transport, tz, 999) } |