IP Limit Tweaks to reduce false bans (#850)

* IP Limit Tweaks to reduce false bans
1) Check IPs every 10s instead of 20s
2) F2B jail: maxretry 3 -> 4, findtime 100 -> 60

* USERS SHOULD UPDATE BANTIME ONCE AFTER UPDATE
to recreate jail for Ip Limit
This commit is contained in:
somebodywashere authored and GitHub committed 2023-08-02 00:28:16 +03:30
1 parent b805bf6222
commit dd0217b46b
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -130,8 +130,8 @@ func (j *CheckClientIpJob) processLogFile() {
}
// added 3 seconds delay before cleaning logs to reduce chance of logging IP that already has been banned
time.Sleep(time.Second * 3)
// added delay before cleaning logs to reduce chance of logging IP that already has been banned
time.Sleep(time.Second * 2)
if shouldCleanLog {
// copy access log to persistent file