Skip to content
Snippets Groups Projects
Unverified Commit 2b92c93e authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[bug] choose gw transport in the inner loop

parent 4eee08d5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment