Skip to content

Commit d68339c

Browse files
committed
Fix: socks5 inbound return remote udp addr for identity
1 parent 0f4cdbf commit d68339c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/socks/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (c *fakeConn) WriteBack(b []byte, addr net.Addr) (n int, err error) {
2929

3030
// LocalAddr returns the source IP/Port of UDP Packet
3131
func (c *fakeConn) LocalAddr() net.Addr {
32-
return c.PacketConn.LocalAddr()
32+
return c.rAddr
3333
}
3434

3535
func (c *fakeConn) Close() error {

0 commit comments

Comments
 (0)