Fix go vet complaint

"net.IPAddr composite literal uses unkeyed fields"
This commit is contained in:
Arlo Breault 2017-10-18 11:33:29 -04:00
parent def423f5c6
commit da8b37e866

View file

@ -89,7 +89,7 @@ func (c *webRTCConn) RemoteAddr() net.Addr {
if clientIP == nil { if clientIP == nil {
return nil return nil
} }
return &net.IPAddr{clientIP, ""} return &net.IPAddr{IP: clientIP, Zone: ""}
} }
func (c *webRTCConn) SetDeadline(t time.Time) error { func (c *webRTCConn) SetDeadline(t time.Time) error {