diff options
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) } |