Closed 1sixth closed 1 year ago
https://github.com/SagerNet/sing/blob/27d2950cdbe9f9fa057f1c09701043c01382d62e/protocol/socks/handshake.go#L187
According to RFC 1928, in SOCKS5 handshake response, the address/port is the server's bound address/port. For a quick fix, using M.SocksaddrFromNet(conn.LocalAddr())
should be enough.
Try 99890a1af0db9246b9e5356ba6b7c5207c544d7b
I can confirm this is now fixed. Thank you!
Welcome
Description of the problem
netcat-openbsd/1.219-1
fails to talk to the proxy server using socks5:curl/7.87.0
works fine though:I also noticed that netcat is able to connect to
v2ray/5.2.1
using socks5 with the following config:Version of sing-box
Server and client configuration file
Server and client log file