[IPLimit] Added check for accessLogPath
This commit is contained in:
1 parent
5ba9d6e118
commit
34ab6ed7ee
1 file changed
+1
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user