-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Received malformed reply with ssh -D socks server #26
Comments
I can reproduce the problem with the sample client. But only if I use If I don't use that parameter, then it works.
Without the
That test IP adress is just google:
|
I think socks4 support might be somewhat broken, was getting very strange results. But not very concerned about that now I have socks5 working. |
OK, looks like this happens if the socks server generates an error trying to make the connection. Seems like socks5 doesn't support returning error information, so the server just closes the connection, which is interpreted as a "malformed response". Ideally it should report server unexpectedly closed connection or something instead. |
This panic may be related to this #27, that PR may fix the issue. |
Using Socks5Stream:
It appears that the code wants a 4 byte response, but it is only getting a 2 byte response.
Will double check my findings when more awake.
The text was updated successfully, but these errors were encountered: