[tor-commits] [snowflake/master] Fix `go vet` complaint
arlo at torproject.org
arlo at torproject.org
Wed Oct 18 15:34:32 UTC 2017
commit da8b37e866d0783c37cb5c9712b597010d8ec996
Author: Arlo Breault <arlolra at gmail.com>
Date: Wed Oct 18 11:33:29 2017 -0400
Fix `go vet` complaint
"net.IPAddr composite literal uses unkeyed fields"
---
proxy-go/snowflake.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy-go/snowflake.go b/proxy-go/snowflake.go
index 1273474..a0f7f87 100644
--- a/proxy-go/snowflake.go
+++ b/proxy-go/snowflake.go
@@ -89,7 +89,7 @@ func (c *webRTCConn) RemoteAddr() net.Addr {
if clientIP == nil {
return nil
}
- return &net.IPAddr{clientIP, ""}
+ return &net.IPAddr{IP: clientIP, Zone: ""}
}
func (c *webRTCConn) SetDeadline(t time.Time) error {
More information about the tor-commits
mailing list