From d68339cea7c986c32b5cb31e32b1b5b02707fbe0 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Thu, 20 Feb 2020 11:29:16 +0800 Subject: [PATCH] Fix: socks5 inbound return remote udp addr for identity --- proxy/socks/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/socks/utils.go b/proxy/socks/utils.go index af3d8a6b..b4ef429b 100644 --- a/proxy/socks/utils.go +++ b/proxy/socks/utils.go @@ -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 {