Allow setting -BlacklistThreshold to 0 to disable it

This commit is contained in:
Lauri Kasanen 2024-09-23 13:29:35 +03:00
parent e5404b10e1
commit e7b758465f
No known key found for this signature in database
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.

View File

@ -478,7 +478,7 @@ See the GnuTLS manual for possible values. Default is \fBNORMAL\fP.
.TP
.B \-BlacklistThreshold \fIcount\fP
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
.B \-BlacklistTimeout \fIseconds\fP