Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/job/check_client_ip_job.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go
index 1c292a50..580ce35a 100644
--- a/web/job/check_client_ip_job.go
+++ b/web/job/check_client_ip_job.go
@@ -20,7 +20,6 @@ type CheckClientIpJob struct {}
var job *CheckClientIpJob
var disAllowedIps []string
var ipFiles = []string{
- xray.GetBlockedIPsPath(),
xray.GetIPLimitLogPath(),
xray.GetIPLimitBannedLogPath(),
xray.GetAccessPersistentLogPath(),
@@ -45,11 +44,6 @@ func (j *CheckClientIpJob) Run() {
if j.hasLimitIp() {
j.processLogFile()
}
-
- // write to blocked ips
- blockedIps := []byte(strings.Join(disAllowedIps, ","))
- err := os.WriteFile(xray.GetBlockedIPsPath(), blockedIps, 0644)
- j.checkError(err)
}
func (j *CheckClientIpJob) hasLimitIp() bool {