优化FastHosts,增加Spend(耗时)

This commit is contained in:
injoyai
2025-06-18 13:51:45 +08:00
parent 705f6e4e3a
commit fc1f25c6c9

View File

@@ -77,7 +77,7 @@ var (
}
)
// FastHosts 通过tcp(ping不可用)的方式筛选可用的地址,并排序(有点误差)
// FastHosts 通过tcp(ping不可用)连接速度的方式筛选排序可用的地址
func FastHosts(hosts ...string) []DialResult {
wg := sync.WaitGroup{}
wg.Add(len(hosts))