From a00de486e49160a8f1c349e4086a6a95a71d69e2 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Fri, 28 Dec 2018 11:16:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E5=8F=AF?= =?UTF-8?q?=E7=94=A8ip=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/switch.go b/switch.go index 2aa12ec..130c3b5 100644 --- a/switch.go +++ b/switch.go @@ -200,7 +200,6 @@ func (swi *Switch) switchActives(w http.ResponseWriter, req *http.Request) { for addr, group := range swi.Worker.ForLoop { addrmap := make(map[string]interface{}) - content[addr] = addrmap isappend := int64(0) var hosts []string @@ -211,6 +210,7 @@ func (swi *Switch) switchActives(w http.ResponseWriter, req *http.Request) { hosts = append(hosts, dhost.Host) } if isappend > 1 { + content[addr] = addrmap addrmap["group"] = hosts addrmap["city"] = group.City }