Merge branch 'feature/KASM-2368_ip_blacklist' into 'master'

Have BlacklistThreshold 0 disable the blacklist

Closes KASM-2368

See merge request kasm-technologies/internal/KasmVNC!28
This commit is contained in:
Matthew McClaskey 2022-03-07 11:02:10 +00:00
commit a734a613c8

View File

@ -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];