Fix SOCKS5 nopass authentication
This commit is contained in:
parent
22d9e20b4a
commit
13872a3a3e
1
common.c
1
common.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user