[IPLimit] Added check for accessLogPath

This commit is contained in:
somebodywashere 2024-03-05 17:20:00 +03:00
parent 5ba9d6e118
commit 34ab6ed7ee

View File

@ -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()
}
}