Commit fe2a3c59 authored by szh's avatar szh

update

parent 4d84a7cf
......@@ -127,8 +127,10 @@ func GetRightIPs() (ipv4s []*net.IPNet, err error) {
if err != nil {
return nil, err
}
ips = append(ips, ip)
tlog.Info("GetRightIPs","ip",*ip)
if ip != nil {
ips = append(ips, ip)
tlog.Info("GetRightIPs","ip",ip.IP.String())
}
}
tlog.Info("GetRightIPs","ips",ips)
return ips, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment