From 45c7f7345dfa7b95ae6b8322adbf71a5570e5aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 12 Sep 2018 15:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8Dappend=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AAnetwork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/wires.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compute/models/wires.go b/pkg/compute/models/wires.go index d522c53e58..7dea974aed 100644 --- a/pkg/compute/models/wires.go +++ b/pkg/compute/models/wires.go @@ -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 }