mirror of
https://github.com/XIU2/CloudflareSpeedTest.git
synced 2026-05-01 03:33:13 +08:00
fix: close http connections when each ip test ended
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user