diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go index 81a02e2d..cbc352dc 100644 --- a/web/job/check_client_ip_job.go +++ b/web/job/check_client_ip_job.go @@ -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