Commit f5cff0ba authored by Andreas Kempe's avatar Andreas Kempe
Browse files

Send error reply if no acceptable authentication method is found

The client sends a list of acceptable authentication methods that the
server can choose. Currently only Auth None is supported and the server
will reply with an error message for all other methods.
parent f0b8a068
......@@ -363,7 +363,8 @@ class SocksRelay
_out.print("AuthNone chosen. Sending reply.")
SocksMethodSelectionMessage(m).send(_connection)
else
_out.print("ERROR: Unsupported authentication method")
_out.print("No supported authentication method acceptable to client")
SocksMethodSelectionMessage(AuthNotFound).send(_connection)
error
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment