Skip to content

Commit 4aa7510

Browse files
committed
rpn: do not limit locations to 1 per country
1 parent a0f70eb commit 4aa7510

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

intra/ipn/warp/yegor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,14 +811,14 @@ func (a *WsClient) Locations() (x.RpnServers, error) {
811811
log.W("ws: locations: config#%d has no cc", i)
812812
continue
813813
}
814-
if !visited[rc.CC] {
814+
if !visited[rc.Name] {
815815
s = append(s, x.RpnServer{
816816
CC: rc.CC,
817817
Name: rc.Name,
818818
Addrs: strings.Join([]string{rc.ServerDomainPort, rc.addrCsv()}, ","),
819819
})
820820
}
821-
visited[rc.CC] = true
821+
visited[rc.Name] = true
822822
}
823823
return &RpnMultiCountryServers{s}, nil
824824
}

0 commit comments

Comments
 (0)