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 {