Fix SOCKS5 nopass authentication

This commit is contained in:
Přemysl Eric Janouch 2015-07-21 00:57:16 +02:00
parent 22d9e20b4a
commit 13872a3a3e

View File

@ -804,6 +804,7 @@ socks_5_auth_start (struct socks_connector *self)
str_append_c (wb, 0x05); // version
str_append_c (wb, 1 + can_auth); // number of authentication methods
str_append_c (wb, 0x00); // no authentication required
if (can_auth)
str_append_c (wb, 0x02); // username/password
self->on_data = socks_5_auth_finish;