mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4321] [CLOSED] Preserve clients' IP history #5654
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#5654
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/4321
Author: @vahellame
Created: 5/12/2026
Status: ❌ Closed
Base:
main← Head:fix/preserve-client-ip-history📝 Commits (1)
89f904bPreserve clients' IP history📊 Changes
1 file changed (+41 additions, -41 deletions)
View changed files
📝
web/job/check_client_ip_job.go(+41 -41)📄 Description
What is the pull request?
This PR preserves historical client IP records in
inbound_client_ipswhile keeping IP Limit enforcement based only on IPs observed in the current access-log scan.The previous stale IP eviction was introduced to fix the continuous Fail2Ban loop described in https://github.com/MHSanaei/3x-ui/issues/4077. A related regression was later tracked in https://github.com/MHSanaei/3x-ui/issues/4091, where db-only IPs could still affect ban decisions before
partitionLiveIps()separated live IPs from historical ones.This PR keeps that protection intact:
partitionLiveIps()still ensures that only IPs observed in the current scan are counted towardLimitIPThe only behavior changed here is retention: client IP history is no longer removed from
inbound_client_ipsafter 30 minutes.Which part of the application is affected by the change?
Type of Changes
Screenshots
Not applicable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.