[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/master] Fix `go vet` complaint



commit da8b37e866d0783c37cb5c9712b597010d8ec996
Author: Arlo Breault <arlolra@xxxxxxxxx>
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 {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits