mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-16 12:35:54 +00:00
fix: Revert log fail2ban format
This commit is contained in:
parent
0b1d27bf03
commit
537f8d4f8c
1 changed files with 2 additions and 2 deletions
|
|
@ -349,10 +349,10 @@ func (j *CheckClientIpJob) updateInboundClientIps(inboundClientIps *model.Inboun
|
|||
keptIps := allIps[:limitIp]
|
||||
bannedIps := allIps[limitIp:]
|
||||
|
||||
// Log banned IPs in the format fail2ban filters expect: [LIMIT_IP] Email = X || SRC = Y
|
||||
// Log banned IPs in the format fail2ban filters expect: [LIMIT_IP] Email = X || Disconnecting OLD IP = Y || Timestamp = Z
|
||||
for _, ipTime := range bannedIps {
|
||||
j.disAllowedIps = append(j.disAllowedIps, ipTime.IP)
|
||||
log.Printf("[LIMIT_IP] Email = %s || SRC = %s", clientEmail, ipTime.IP)
|
||||
log.Printf("[LIMIT_IP] Email = %s || Disconnecting OLD IP = %s || Timestamp = %d", clientEmail, ipTime.IP, ipTime.Timestamp)
|
||||
}
|
||||
|
||||
// Update database with only the currently active (kept) IPs
|
||||
|
|
|
|||
Loading…
Reference in a new issue