chore: 降低并发查询时IPv6等待
This commit is contained in:
parent
00e33008f6
commit
39b9ee9462
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ func (r *Resolver) ResolveAllIP(host string) (ips []netip.Addr, err error) {
|
||||||
return nil, resolver.ErrIPNotFound
|
return nil, resolver.ErrIPNotFound
|
||||||
}
|
}
|
||||||
ips = append(ips, ipv6s...)
|
ips = append(ips, ipv6s...)
|
||||||
case <-time.After(3 * time.Millisecond):
|
case <-time.After(1 * time.Millisecond):
|
||||||
// wait ipv6 3ms
|
// wait ipv6 result
|
||||||
}
|
}
|
||||||
|
|
||||||
return ips, nil
|
return ips, nil
|
||||||
|
|
Loading…
Reference in a new issue