main
fangdingjun 8 years ago
parent 540f8694fc
commit 831db44b5a

@ -72,7 +72,7 @@ func (h *GoogleHTTPDns) getMyNet() string {
} }
mask := net.IPv4Mask(255, 255, 255, 0) mask := net.IPv4Mask(255, 255, 255, 0)
ipByte := net.ParseIP(ip) ipByte := net.ParseIP(ip)
ipnet := net.IPNet{ipByte.Mask(mask), mask} ipnet := net.IPNet{IP: ipByte.Mask(mask), Mask: mask}
return ipnet.String() return ipnet.String()
} }

Loading…
Cancel
Save