From b134e363a2cf1259b6965ebcf4613e2b23574106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AD=90=E9=BE=99?= Date: Wed, 12 Jul 2023 18:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E7=8A=B6=E6=80=81=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/host_manage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/service/host_manage.go b/src/service/host_manage.go index c9b6acc..148898f 100644 --- a/src/service/host_manage.go +++ b/src/service/host_manage.go @@ -461,6 +461,7 @@ func (h *HostManageSvc) ListStateHostManage(req request.StateHostManageReq) (err fail := make([]int, 0) for i := 0; i < len(hostManageList); i++ { go func() { + i = i //修改状态 connStatus := StatusDetection(hostManageList[i].Ip) if connStatus == 1 { -- 2.26.0