mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4319] [CLOSED] Preserve historical client IPs #5655
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#5655
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/4319
Author: @vahellame
Created: 5/12/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
441b5b5Preserve historical client IPs📊 Changes
1 file changed (+34 additions, -71 deletions)
View changed files
📝
web/job/check_client_ip_job.go(+34 -71)📄 Description
What is the pull request?
Preserves historical client IP records in the IP log while keeping IP Limit enforcement based only on IPs observed in the current scan.
Previously, stale client IP entries were evicted after 30 minutes. This caused the panel IP log to lose historical IP addresses even though they are useful for auditing and visibility.
This change keeps historical IPs in
inbound_client_ips, whilepartitionLiveIps()ensures that only currently observed IPs are counted towardLimitIPand sent to fail2ban.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.