mirror of
https://github.com/darkk/redsocks.git
synced 2025-08-26 19:55:30 +00:00
parent
4521797847
commit
f94a981512
2
socks5.c
2
socks5.c
@ -82,7 +82,7 @@ static void socks5_instance_init(redsocks_instance *instance)
|
||||
if (config->login || config->password) {
|
||||
bool deauth = false;
|
||||
if (config->login && config->password) {
|
||||
deauth = socks5_is_valid_cred(config->login, config->password);
|
||||
deauth = ! socks5_is_valid_cred(config->login, config->password);
|
||||
} else {
|
||||
log_error(LOG_WARNING, "Socks5 needs either both login and password or none of them");
|
||||
deauth = true;
|
||||
|
Loading…
Reference in New Issue
Block a user