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>2024-03-05 17:20:00 +0300
committersomebodywashere <68244480+somebodywashere@users.noreply.github.com>2024-03-05 17:20:00 +0300
commit34ab6ed7eeb2fdaac27adac45a2ee74747fe304c (patch)
treef8a8b22628144cf4c34e809fe0047eeec57e1a29 /web/job
parent5ba9d6e1186bd03575078b492f1978548662b746 (diff)
[IPLimit] Added check for accessLogPath
Diffstat (limited to 'web/job')
-rw-r--r--web/job/check_client_ip_job.go2
1 files changed, 1 insertions, 1 deletions
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()
}
}