mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'e8cf494496812371b4d326866d400878eb45fb84': 避免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