mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3931] [MERGED] fix: stop overwriting client_traffics.enable with JSON enable in GetC… #5559
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#5559
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/3931
Author: @Alimpo
Created: 3/16/2026
Status: ✅ Merged
Merged: 3/17/2026
Merged by: @MHSanaei
Base:
main← Head:fix-reset-reenable-qoutadisabled-configs📝 Commits (1)
70a9a08fix: stop overwriting client_traffics.enable with JSON enable in GetClientTrafficByEmail📊 Changes
1 file changed (+0 additions, -1 deletions)
View changed files
📝
web/service/inbound.go(+0 -1)📄 Description
What is the pull request?
Fix client traffic reset for quota-disabled clients by preserving the DB runtime
enableflag inGetClientTrafficByEmail.When a client hit traffic/expiry limit,
disableInvalidClientssetsclient_traffics.enable=falseand removes the user from Xray.GetClientTrafficByEmailwas overwriting that withsettings.clients[].enable(admin config), soResetClientTrafficnever saw the client as disabled and did not re-add the user. Clients could not connect until manually disabled/re-enabled. Now the DB runtime enable flag is preserved; reset correctly re-adds the user to Xray.Which part of the application is affected by the change?
Type of Changes
Screenshots
N/A — backend-only logic fix; no UI change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.