소스 검색

[IPLimit] Added check for accessLogPath

somebodywashere 1 년 전
부모
커밋
34ab6ed7ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()
 	}
 }