Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/job
diff options
context:
space:
mode:
authorsomebodywashere <68244480+somebodywashere@users.noreply.github.com>2023-08-01 23:58:16 +0300
committerGitHub <noreply@github.com>2023-08-01 23:58:16 +0300
commitdd0217b46b7a557c52a7f8a19b08530cb2878219 (patch)
tree9efa21dea60259b3e19b769873c9a6d0fd5495a2 /web/job
parentb805bf62229ef4a1211b6bc1e7603c07b12b9653 (diff)
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
Diffstat (limited to 'web/job')
-rw-r--r--web/job/check_client_ip_job.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go
index 580ce35a..1c5dec83 100644
--- a/web/job/check_client_ip_job.go
+++ b/web/job/check_client_ip_job.go
@@ -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