Bläddra i källkod

[IPLimit] Added check for accessLogPath

somebodywashere 1 år sedan
förälder
incheckning
34ab6ed7ee
1 ändrade filer med 1 tillägg och 1 borttagningar
  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()
 	}
 }