1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

LocalAddr() should return local address

This commit is contained in:
zhuobixin 2020-06-05 11:17:02 +08:00 committed by GitHub
parent b610fc0a70
commit dc906cf68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ func (c *udpConn) RemoteAddr() net.Addr {
} }
func (c *udpConn) LocalAddr() net.Addr { func (c *udpConn) LocalAddr() net.Addr {
return c.remote return c.local
} }
func (*udpConn) SetDeadline(time.Time) error { func (*udpConn) SetDeadline(time.Time) error {