summaryrefslogtreecommitdiff
path: root/pkg/vpn/bonafide/gateways.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-23 00:43:29 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-23 00:43:40 +0100
commitbddadc7323d6467f5233f26b97652fe671d77eed (patch)
tree7f5aba2a33e852a2be04ff3e6bbd0383376d91f1 /pkg/vpn/bonafide/gateways.go
parentd83fd91d6293386867cc908f05b5f3f4d95a7053 (diff)
[ui] expose bonafide+snowflake bootstrap events
Diffstat (limited to 'pkg/vpn/bonafide/gateways.go')
-rw-r--r--pkg/vpn/bonafide/gateways.go13
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)
}