提交 cd4cbf19 编写于 作者: 黎咏

When the ip4 addres is nil, it should try the next.

Signed-off-by: N黎咏 <s_xun_s@163.com>
上级 38eaa5cd
......@@ -114,6 +114,9 @@ func IPv4() (net.IP, error) {
}
ip := ipnet.IP.To4()
if ip == nil {
continue
}
return ip, nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册