Merge branch 'feature/KASM-6519_disable_blacklist' into 'master'

Allow setting -BlacklistThreshold to 0 to disable it

Closes KASM-6519

See merge request kasm-technologies/internal/KasmVNC!144
This commit is contained in:
Matthew McClaskey
2024-10-25 10:39:29 +00:00
2 changed files with 4 additions and 1 deletions

View File

@@ -42,6 +42,9 @@ Blacklist::~Blacklist() {
}
bool Blacklist::isBlackmarked(const char* name) {
if (!threshold)
return false;
BlacklistMap::iterator i = blm.find(name);
if (i == blm.end()) {
// Entry is not already black-marked.