mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Automatic merge from release/2.0.0 -> release/2.1.0
* commit '5087a48e8e3720f8666972f55946c81c277db2aa': 避免append同一个network
This commit is contained in:
@@ -415,7 +415,8 @@ func ChooseCandidateNetworks(nets []SNetwork, isExit bool, serverType string) *S
|
||||
matchingNets := make([]*SNetwork, 0)
|
||||
notMatchingNets := make([]*SNetwork, 0)
|
||||
|
||||
for _, net := range nets {
|
||||
for i := 0; i < len(nets); i++ {
|
||||
net := nets[i]
|
||||
if isExit != net.IsExitNetwork() {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user