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:
parent
b610fc0a70
commit
dc906cf68a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user