mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix: socks5 inbound return remote udp addr for identity
This commit is contained in:
parent
0f4cdbf187
commit
d68339cea7
|
@ -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
|
// LocalAddr returns the source IP/Port of UDP Packet
|
||||||
func (c *fakeConn) LocalAddr() net.Addr {
|
func (c *fakeConn) LocalAddr() net.Addr {
|
||||||
return c.PacketConn.LocalAddr()
|
return c.rAddr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *fakeConn) Close() error {
|
func (c *fakeConn) Close() error {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user