From 4eef69a3d4fcd9cafec419f76f3fd0de8f9a415e Mon Sep 17 00:00:00 2001 From: Wankko Ree Date: Mon, 27 Apr 2026 03:59:33 +0800 Subject: [PATCH] fix: close http connections when each ip test ended --- task/httping.go | 1 + 1 file changed, 1 insertion(+) diff --git a/task/httping.go b/task/httping.go index 485ec4a..2f36d69 100644 --- a/task/httping.go +++ b/task/httping.go @@ -37,6 +37,7 @@ func (p *Ping) httping(ip *net.IPAddr) (int, time.Duration, string) { return http.ErrUseLastResponse // 阻止重定向 }, } + defer hc.CloseIdleConnections() // 先访问一次获得 HTTP 状态码 及 地区码 var colo string