Open ge9 opened 6 months ago
Oh sorry I found there is another pull request of much the same purpose (https://github.com/things-go/go-socks5/pull/63) but I think my implementation is more appropriate because clients on other hosts require external IP address to use UDP associate bind address.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.71%. Comparing base (
8de715f
) to head (40c50a9
). Report is 18 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In UDP associate, the IP address used for connection from the client should be notified to client (at least, https://github.com/3proxy/3proxy is implemented in this way).
This also fixes IPv6 address ([::]) replied for IPv4 UDP associate request (in bytes, [5, 3, 0, 1, 0, 0, 0, 0, 0, 0]).Sorry this is wrong.