mirror of
https://github.com/darkk/redsocks.git
synced 2025-08-27 12:15:29 +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) {
|
if (config->login || config->password) {
|
||||||
bool deauth = false;
|
bool deauth = false;
|
||||||
if (config->login && config->password) {
|
if (config->login && config->password) {
|
||||||
deauth = socks5_is_valid_cred(config->login, config->password);
|
deauth = ! socks5_is_valid_cred(config->login, config->password);
|
||||||
} else {
|
} else {
|
||||||
log_error(LOG_WARNING, "Socks5 needs either both login and password or none of them");
|
log_error(LOG_WARNING, "Socks5 needs either both login and password or none of them");
|
||||||
deauth = true;
|
deauth = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user