Merge pull request #3296 from SxunS/bugfix/ipv4
When the ip4 addres is nil, it should try the next.
This commit is contained in:
@@ -114,6 +114,9 @@ func IPv4() (net.IP, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ip := ipnet.IP.To4()
|
ip := ipnet.IP.To4()
|
||||||
|
if ip == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return ip, nil
|
return ip, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user