mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
[IPLimit] Added check for accessLogPath
This commit is contained in:
parent
5ba9d6e118
commit
34ab6ed7ee
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue