fix: resolver error handling exception
This commit is contained in:
parent
e1c6142851
commit
fe3ad3724c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func ResolveIPv4WithResolver(host string, r Resolver) (netip.Addr, error) {
|
|||
if ips, err := ResolveAllIPv4WithResolver(host, r); err == nil {
|
||||
return ips[rand.Intn(len(ips))], nil
|
||||
} else {
|
||||
return netip.Addr{}, nil
|
||||
return netip.Addr{}, err
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue