mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Fix go vet
complaint
"net.IPAddr composite literal uses unkeyed fields"
This commit is contained in:
parent
def423f5c6
commit
da8b37e866
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue