fix: resolve ipv4 of 4 in 6
This commit is contained in:
parent
bb9fac37ae
commit
6143b134e3
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ func ResolveAllIPv4WithResolver(host string, r Resolver) ([]netip.Addr, error) {
|
|||
|
||||
ip, err := netip.ParseAddr(host)
|
||||
if err == nil {
|
||||
if ip.Is4() {
|
||||
if ip.Is4() || ip.Is4In6() {
|
||||
return []netip.Addr{ip}, nil
|
||||
}
|
||||
return []netip.Addr{}, ErrIPVersion
|
||||
|
|
Loading…
Reference in a new issue