From 2b4d6160c40d55cd8e9a7ffad4cc1524c19c4591 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 18 Feb 2024 01:06:40 +0330 Subject: minor changes --- web/job/check_client_ip_job.go | 6 +++--- web/service/outbound.go | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'web') diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go index 51a09db8..d48bc8eb 100644 --- a/web/job/check_client_ip_job.go +++ b/web/job/check_client_ip_job.go @@ -118,7 +118,7 @@ func (j *CheckClientIpJob) checkFail2BanInstalled() { err := exec.Command(cmd, args...).Run() if err != nil { - logger.Error("fail2ban is not installed. IP limiting may not work properly.") + logger.Warning("fail2ban is not installed. IP limiting may not work properly.") } } @@ -126,12 +126,12 @@ func (j *CheckClientIpJob) processLogFile() { accessLogPath := xray.GetAccessLogPath() if accessLogPath == "none" { - logger.Error("Access log is set to 'none' check your Xray Configs") + logger.Warning("Access log is set to 'none' check your Xray Configs") return } if accessLogPath == "" { - logger.Error("Access log doesn't exist in your Xray Configs") + logger.Warning("Access log doesn't exist in your Xray Configs") return } diff --git a/web/service/outbound.go b/web/service/outbound.go index 244d7a14..05791f69 100644 --- a/web/service/outbound.go +++ b/web/service/outbound.go @@ -10,7 +10,6 @@ import ( ) type OutboundService struct { - xrayApi xray.XrayAPI } func (s *OutboundService) AddTraffic(traffics []*xray.Traffic, clientTraffics []*xray.ClientTraffic) (error, bool) { -- cgit v1.2.3