mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-08 09:14:10 +01:00
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:
commit
a734a613c8
@ -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