From dc906cf68a529df965ecfa5dc8650284d270f460 Mon Sep 17 00:00:00 2001 From: zhuobixin <49975911+zhuobixin@users.noreply.github.com> Date: Fri, 5 Jun 2020 11:17:02 +0800 Subject: [PATCH] LocalAddr() should return local address --- app/proxyman/inbound/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proxyman/inbound/worker.go b/app/proxyman/inbound/worker.go index 2a2793eb..d2a9bc02 100644 --- a/app/proxyman/inbound/worker.go +++ b/app/proxyman/inbound/worker.go @@ -198,7 +198,7 @@ func (c *udpConn) RemoteAddr() net.Addr { } func (c *udpConn) LocalAddr() net.Addr { - return c.remote + return c.local } func (*udpConn) SetDeadline(time.Time) error {