From 34ab6ed7eeb2fdaac27adac45a2ee74747fe304c Mon Sep 17 00:00:00 2001 From: somebodywashere <68244480+somebodywashere@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:20:00 +0300 Subject: [PATCH] [IPLimit] Added check for accessLogPath --- web/job/check_client_ip_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go index 16aa24e3..344160e1 100644 --- a/web/job/check_client_ip_job.go +++ b/web/job/check_client_ip_job.go @@ -57,7 +57,7 @@ func (j *CheckClientIpJob) Run() { } } - if clearAccessLog || time.Now().Unix() - j.lastClear > 3600 { + if clearAccessLog || accessLogPath == "./access.log" && time.Now().Unix() - j.lastClear > 3600 { j.clearAccessLog() } }