mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-24 17:14:01 +01:00
Have BlacklistThreshold 0 disable the blacklist
This commit is contained in:
parent
6a9dfdc593
commit
e6b4f40ed7
@ -68,6 +68,9 @@ unsigned char bl_isBlacklisted(const char *addr) {
|
||||
}
|
||||
|
||||
void bl_addFailure(const char *addr) {
|
||||
if (!rfb::Blacklist::threshold)
|
||||
return;
|
||||
|
||||
if (pthread_mutex_lock(&hitmutex))
|
||||
abort();
|
||||
const unsigned num = ++hits[addr];
|
||||
|
Loading…
Reference in New Issue
Block a user