diff --git a/google_httpdns.go b/google_httpdns.go index 1d2b2f3..520d0da 100644 --- a/google_httpdns.go +++ b/google_httpdns.go @@ -72,7 +72,7 @@ func (h *GoogleHTTPDns) getMyNet() string { } mask := net.IPv4Mask(255, 255, 255, 0) ipByte := net.ParseIP(ip) - ipnet := net.IPNet{ipByte.Mask(mask), mask} + ipnet := net.IPNet{IP: ipByte.Mask(mask), Mask: mask} return ipnet.String() }