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
diff options
context:
space:
mode:
-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()
}
}