Browse Source

[IPLimit] Added check for accessLogPath

somebodywashere 1 year ago
parent
commit
34ab6ed7ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/job/check_client_ip_job.go

+ 1 - 1
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()
 	}
 }