summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-05-17 11:57:01 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-05-17 17:52:45 +0200
commit2b92c93e8643347fb9f769a92e0cc9edb1d7206e (patch)
treeba30cfe2d8b6de073e85b2d7639ed32f265e7cca /pkg
parent4eee08d520b73fb96a43cf4888972e502c6c1fa3 (diff)
[bug] choose gw transport in the inner loop
Diffstat (limited to 'pkg')
-rw-r--r--pkg/vpn/bonafide/gateways.go6
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