Merge pull request #3296 from SxunS/bugfix/ipv4

When the ip4 addres is nil, it should try the next.
This commit is contained in:
KubeSphere CI Bot
2021-02-01 10:59:44 +08:00
committed by GitHub

View File

@@ -114,6 +114,9 @@ func IPv4() (net.IP, error) {
}
ip := ipnet.IP.To4()
if ip == nil {
continue
}
return ip, nil
}