things-go / go-socks5

socks5 server in pure Golang with much custom optional. Full TCP/UDP and IPv4/IPv6 support.
MIT License
368 stars 59 forks source link

Error: failed to get request version and command #48

Open alexng353 opened 5 months ago

alexng353 commented 5 months ago

https://github.com/things-go/go-socks5/blob/964148ee1660df400ce3847e8465f59a327bbbc5/statute/message.go#L33C1-L35C3

I have been getting a lot of these errors while testing and using my new project https://github.com/alexng353/ihostproxy that I am not getting with https://github.com/serjs/socks5-server The code throws an error in the file linked above, which has different code than the original from armon's repository.

I will be testing the code myself to see if I can find why it is erroring so much...

https://github.com/armon/go-socks5/blob/e75332964ef517daa070d7c38a9466a0d687e0a5/request.go#L90C1-L95C3

image

thinkgos commented 4 months ago

show your test code, a link, how your test, in fact, it look like no difference than the original from armon's repository.