From c1cd6289e8adde6aae0740008cc1a98402c63630 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Tue, 12 May 2026 15:33:53 +0800 Subject: [PATCH] fix: skip TCP supplementary probe in icmp mode --- core/icmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/icmp.go b/core/icmp.go index c4c18a2..47f1663 100644 --- a/core/icmp.go +++ b/core/icmp.go @@ -82,7 +82,7 @@ func CheckLive(ctx context.Context, hostslist []string, Ping bool, session *comm // tcpSupplementaryProbe TCP 补充探测 // 当 ICMP 响应率过低时(<10%),对未响应主机进行 TCP 探测 func tcpSupplementaryProbe(ctx context.Context, allHosts []string, aliveHosts []string, session *common.ScanSession) []string { - if session.Config.DisableTcpProbe { + if session.Config.DisableTcpProbe || session.Config.Mode == "icmp" { return aliveHosts }