diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-01-22 13:35:07 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-22 13:35:07 -0800 |
commit | 0e7f4172931e1d7517b49deeb2d134704443320c (patch) | |
tree | 1058d002727a45f2342e66c3f421afa5170446f9 | |
parent | 5ab1213a6c405071546c783d6d93b4e9af52842e (diff) | |
parent | 38fe05eb699550dc1ae5f6773f0190cad83d5ae8 (diff) |
Merge pull request #1631 from majek:fix-gonet-udp.RemoteAddr
PiperOrigin-RevId: 291019296
-rw-r--r-- | pkg/tcpip/adapters/gonet/gonet.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/adapters/gonet/gonet.go b/pkg/tcpip/adapters/gonet/gonet.go index a2f44b496..3bba4028b 100644 --- a/pkg/tcpip/adapters/gonet/gonet.go +++ b/pkg/tcpip/adapters/gonet/gonet.go @@ -622,7 +622,7 @@ func (c *PacketConn) RemoteAddr() net.Addr { if err != nil { return nil } - return fullToTCPAddr(a) + return fullToUDPAddr(a) } // Read implements net.Conn.Read |