Skip to content

Commit

Permalink
Allow empty password for SOCKS5
Browse files Browse the repository at this point in the history
  • Loading branch information
Vort committed Jun 17, 2023
1 parent a0795d8 commit de2b783
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libi2pd_client/SOCKS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,13 @@ namespace proxy
if (m_parseleft == 0) EnterState(GET5_PASSWD_SIZE);
break;
case GET5_PASSWD_SIZE:
EnterState(GET5_PASSWD, *sock_buff);
if (*sock_buff)
EnterState(GET5_PASSWD, *sock_buff);
else
{
Socks5UserPasswdResponse ();
EnterState(GET5_REQUESTV);
}
break;
case GET5_PASSWD:
// skip passwd for now
Expand Down

0 comments on commit de2b783

Please sign in to comment.