From 9ba3ec70546303e91a97229d543e253c3d76ae01 Mon Sep 17 00:00:00 2001 From: shadow1ng Date: Fri, 5 Feb 2021 16:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9icmp=E5=8F=91=E5=8C=85?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F,=E6=9B=B4=E9=80=82=E5=90=88=E5=A4=A7?= =?UTF-8?q?=E8=A7=84=E6=A8=A1=E6=8E=A2=E6=B5=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugins/icmp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/icmp.go b/Plugins/icmp.go index 939b74e..a05722c 100644 --- a/Plugins/icmp.go +++ b/Plugins/icmp.go @@ -87,11 +87,12 @@ func IcmpCheck(hostslist []string) { write(host, conn) } - if len(hostslist) > 100 { + if len(hostslist) > 255 { time.Sleep(6 * time.Second) } else { time.Sleep(3 * time.Second) } + endflag = true close(chanHosts) conn.Close()