mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3919] [MERGED] fix: Ban new IPs with fail2ban instead of disconnected the client. #5558
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5558
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3919
Author: @HamidRezaSZ
Created: 3/13/2026
Status: ✅ Merged
Merged: 3/17/2026
Merged by: @MHSanaei
Base:
main← Head:fix/ip-limit📝 Commits (3)
5a6fb40fix: Ban new IPs with fail2ban instead of disconnected the client.0b1d27bfix: Remove unused strconv import537f8d4fix: Revert log fail2ban format📊 Changes
1 file changed (+9 additions, -70 deletions)
View changed files
📝
web/job/check_client_ip_job.go(+9 -70)📄 Description
What is the pull request?
Fix #3895 — Preserve the original IP while logging new IPs for Fail2Ban. The sorting logic was incorrect and reversed. Also remove the disconnectClientTemporarily function and all related usages to ban the new IPs instead of disconnecting the client.
Which part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.