new - select option for loglevel & access log

This commit is contained in:
MHSanaei
2024-02-03 17:54:04 +03:30
parent 6804facabc
commit 618a566283
9 changed files with 94 additions and 5 deletions

View File

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