Fix: socks5 inbound return remote udp addr for identity

This commit is contained in:
gVisor bot 2020-02-20 11:29:16 +08:00
parent 26cdcc22c8
commit 1a8708d5e2

View file

@ -29,7 +29,7 @@ func (c *fakeConn) WriteBack(b []byte, addr net.Addr) (n int, err error) {
// LocalAddr returns the source IP/Port of UDP Packet
func (c *fakeConn) LocalAddr() net.Addr {
return c.PacketConn.LocalAddr()
return c.rAddr
}
func (c *fakeConn) Close() error {