diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-03 17:24:04 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-04 01:15:55 +0300 |
| commit | 618a5662837b0c70a88782ccb47e1cb634241bb3 (patch) | |
| tree | 8fb6841d3e47bc64b24b776b4ea61a8f95aff903 /web/job | |
| parent | 6804facabc27a5dc72a8db22bbaaf2c245161323 (diff) | |
new - select option for loglevel & access log
Diffstat (limited to 'web/job')
| -rw-r--r-- | web/job/check_client_ip_job.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go index ecfd5abb..77cbe256 100644 --- a/web/job/check_client_ip_job.go +++ b/web/job/check_client_ip_job.go @@ -94,8 +94,14 @@ func (j *CheckClientIpJob) checkFail2BanInstalled() { func (j *CheckClientIpJob) processLogFile() { accessLogPath := xray.GetAccessLogPath() + + if accessLogPath == "none" { + logger.Warning("Access log is set to 'none' check your Xray Configs") + return + } + if accessLogPath == "" { - logger.Warning("access.log doesn't exist in your config.json") + logger.Warning("Access log doesn't exist in your Xray Configs") return } |
