Commit fe2a3c59 authored by szh's avatar szh

update

parent 4d84a7cf
...@@ -127,8 +127,10 @@ func GetRightIPs() (ipv4s []*net.IPNet, err error) { ...@@ -127,8 +127,10 @@ func GetRightIPs() (ipv4s []*net.IPNet, err error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if ip != nil {
ips = append(ips, ip) ips = append(ips, ip)
tlog.Info("GetRightIPs","ip",*ip) tlog.Info("GetRightIPs","ip",ip.IP.String())
}
} }
tlog.Info("GetRightIPs","ips",ips) tlog.Info("GetRightIPs","ips",ips)
return ips, nil 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