mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-21 23:53:24 +01:00
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:
commit
3a8517d7dc
@ -42,6 +42,9 @@ Blacklist::~Blacklist() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Blacklist::isBlackmarked(const char* name) {
|
bool Blacklist::isBlackmarked(const char* name) {
|
||||||
|
if (!threshold)
|
||||||
|
return false;
|
||||||
|
|
||||||
BlacklistMap::iterator i = blm.find(name);
|
BlacklistMap::iterator i = blm.find(name);
|
||||||
if (i == blm.end()) {
|
if (i == blm.end()) {
|
||||||
// Entry is not already black-marked.
|
// Entry is not already black-marked.
|
||||||
|
@ -478,7 +478,7 @@ See the GnuTLS manual for possible values. Default is \fBNORMAL\fP.
|
|||||||
.TP
|
.TP
|
||||||
.B \-BlacklistThreshold \fIcount\fP
|
.B \-BlacklistThreshold \fIcount\fP
|
||||||
The number of unauthenticated connection attempts allowed from any individual
|
The number of unauthenticated connection attempts allowed from any individual
|
||||||
host before that host is black-listed. Default is 5.
|
host before that host is black-listed. Default is 5. Set to 0 to disable.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B \-BlacklistTimeout \fIseconds\fP
|
.B \-BlacklistTimeout \fIseconds\fP
|
||||||
|
Loading…
Reference in New Issue
Block a user