~/Projects/sing
git clone https://code.lsong.org/sing
Commit
- Commit
- 99754098d1191b2a4721a042115b0fc8a2790402
- Author
- 世界 <[email protected]>
- Date
- 2022-06-20 15:49:45 +0800 +0800
- Diffstat
protocol/socks/packet.go | 2 +-
Fix socks udp conn
diff --git a/protocol/socks/packet.go b/protocol/socks/packet.go index 8ce654bf20fd7d036fff50135e233b8445257f15..f5ded3c6a3f6bb82c98618242a7ed7b0971ef78d 100644 --- a/protocol/socks/packet.go +++ b/protocol/socks/packet.go @@ -83,7 +83,7 @@ return } func (c *AssociatePacketConn) Write(b []byte) (n int, err error) { - return c.WriteTo(b, c.addr) + return c.WriteTo(b, c.remoteAddr) } func (c *AssociatePacketConn) ReadPacket(buffer *buf.Buffer) (M.Socksaddr, error) {