mirror of
https://github.com/golang/go
synced 2024-11-25 08:47:56 -07:00
net: fix comment
RemoteAddr returns not only UDPAddr but IPAddr. R=golang-dev, dave CC=golang-dev https://golang.org/cl/6401054
This commit is contained in:
parent
ce274339a1
commit
c1f2ec384f
@ -46,7 +46,7 @@ func (c *conn) LocalAddr() Addr {
|
||||
return c.fd.laddr
|
||||
}
|
||||
|
||||
// RemoteAddr returns the remote network address, a *UDPAddr.
|
||||
// RemoteAddr returns the remote network address.
|
||||
func (c *conn) RemoteAddr() Addr {
|
||||
if !c.ok() {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user