Fix SOCKS5 nopass authentication
This commit is contained in:
parent
22d9e20b4a
commit
13872a3a3e
3
common.c
3
common.c
@ -804,7 +804,8 @@ socks_5_auth_start (struct socks_connector *self)
|
|||||||
str_append_c (wb, 0x05); // version
|
str_append_c (wb, 0x05); // version
|
||||||
str_append_c (wb, 1 + can_auth); // number of authentication methods
|
str_append_c (wb, 1 + can_auth); // number of authentication methods
|
||||||
str_append_c (wb, 0x00); // no authentication required
|
str_append_c (wb, 0x00); // no authentication required
|
||||||
str_append_c (wb, 0x02); // username/password
|
if (can_auth)
|
||||||
|
str_append_c (wb, 0x02); // username/password
|
||||||
|
|
||||||
self->on_data = socks_5_auth_finish;
|
self->on_data = socks_5_auth_finish;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user