mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
[IPLimit] Added check for accessLogPath
This commit is contained in:
parent
5ba9d6e118
commit
34ab6ed7ee
@ -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 New Issue
Block a user