mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
chore: 降低并发查询时IPv6等待
This commit is contained in:
parent
fb4872ff7f
commit
d0268bb9a2
@ -88,8 +88,8 @@ func (r *Resolver) ResolveAllIP(host string) (ips []netip.Addr, err error) {
|
||||
return nil, resolver.ErrIPNotFound
|
||||
}
|
||||
ips = append(ips, ipv6s...)
|
||||
case <-time.After(3 * time.Millisecond):
|
||||
// wait ipv6 3ms
|
||||
case <-time.After(1 * time.Millisecond):
|
||||
// wait ipv6 result
|
||||
}
|
||||
|
||||
return ips, nil
|
||||
|
Loading…
Reference in New Issue
Block a user