diff options
| author | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2023-07-26 19:33:28 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-26 19:33:28 +0300 |
| commit | 09807b39aa971ce2f4ea3fc84a4e54766d08fefd (patch) | |
| tree | 0c0c4e8db60838e6122c8e16444d07d4eb5a928c /web/job | |
| parent | a0ec2f39724913405dc0500575ea40dd673ae0e6 (diff) | |
No reason to write to BlockedIPs (#815)
Diffstat (limited to 'web/job')
| -rw-r--r-- | web/job/check_client_ip_job.go | 6 |
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 { |
