mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #4645] [Bug]: Subscription - User info header returns total=0; expire=0 for all clients in multi-node setup (data limit & expiry show as unlimited/no-expiry in clients) #3197
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#3197
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?
Originally created by @x4mznbxmhm-eng on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4645
Describe the bug
In a multi-node setup (master panel generating subscriptions, traffic routed through separate nodes), the subscription endpoint returns a valid Subscription-Userinfo header, but all values are zero — even though the panel UI shows the correct Total GB and Expiry Date for the client.
Because total=0 and expire=0, client apps (Hiddify, etc.) interpret the subscription as unlimited data and no expiry, while the panel itself displays the correct limits.
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Profile-Update-Interval: 12
Profile-Web-Page-Url: https://master.example.com:2096//
Routing-Enable: true
Subscription-Userinfo: upload=0; download=0; total=0; expire=0
Content-Length: 1124
How to reproduce the problem
Expected behavior
The Subscription-Userinfo header should reflect the client’s actual configured values, e.g.:
Subscription-Userinfo: upload=...; download=...; total=322122547200; expire=1735689600
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.0.2
Xray-core version
26.5.9
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Multi-node (sub-nodes)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@heisetanghulu commented on GitHub (May 29, 2026):
I encountered the same problem.