diff options
| author | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2024-03-05 17:20:00 +0300 |
|---|---|---|
| committer | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2024-03-05 17:20:00 +0300 |
| commit | 34ab6ed7eeb2fdaac27adac45a2ee74747fe304c (patch) | |
| tree | f8a8b22628144cf4c34e809fe0047eeec57e1a29 /web/job | |
| parent | 5ba9d6e1186bd03575078b492f1978548662b746 (diff) | |
[IPLimit] Added check for accessLogPath
Diffstat (limited to 'web/job')
| -rw-r--r-- | web/job/check_client_ip_job.go | 2 |
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() } } |
