From 831db44b5a10c5110d3bf8d9210c4accef075bae Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Thu, 5 Jan 2017 10:41:04 +0800 Subject: [PATCH] go vet --- google_httpdns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }