diff options
Diffstat (limited to 'pkg/vpn/bonafide/gateways.go')
-rw-r--r-- | pkg/vpn/bonafide/gateways.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/vpn/bonafide/gateways.go b/pkg/vpn/bonafide/gateways.go index d8f12ec..a0d41fb 100644 --- a/pkg/vpn/bonafide/gateways.go +++ b/pkg/vpn/bonafide/gateways.go @@ -150,10 +150,10 @@ func (p *gatewayPool) getGatewaysFromMenshenByLocation(location, transport strin var gateways []Gateway for _, gw := range p.recommended { - if !gw.gateway.isTransport(transport) { - continue - } for _, locatedGw := range gws { + if !locatedGw.isTransport(transport) { + continue + } if locatedGw.Host == gw.gateway.Host { gateways = append(gateways, *locatedGw) break |