mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #382] Bridge server user traffic statistics is incorrect #259
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#259
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 @pulsarice on GitHub (May 8, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/382
I have a bridge server in Iran and my users are all defined in this server.
the default outbound config of Iran server is Reality.
User ---Reality---> Iran Bridge Server ---Reality---> Foreign Server ---Freedom---> Free Internet
To troubleshoot I disabled all users except one and then downloaded 50mega bytes of data.
x-ui shows traffics like this:
As you see, user traffic is not correct.
Now if I delete the Reality outbound of Iran server and put a Freedom outbound in its place, the traffic will be calculated correctly. But of course now my Iran server is not forwarding user traffic to foreign server
User ---Reality---> Iran Bridge Server ---Freedom---> Iran Internet
This is my server config:
@pulsarice commented on GitHub (May 8, 2023):
@alireza0 do you have any idea what's wrong?
@alireza0 commented on GitHub (May 10, 2023):
@pulsarice
x-uifetch statistics fromxray-coreand add them to the database.Calculation is not on the shoulder of
x-ui@pulsarice commented on GitHub (May 10, 2023):
I changed the outbound protocol from Reality to VLESS-TCP-TLS-WS and the traffic measurement is done properly.
I wonder why outbound protocol has an effect on this!?
@MHSanaei commented on GitHub (May 15, 2023):
https://t.me/panel3xui/65
@psk007 commented on GitHub (Jun 27, 2025):
I'm having an issue with statistics: I tried testing different outbound types, but nothing changed. I suspect we have multiple connections, and the stats API might only consider some of them, not all. I also checked the provided Telegram link, but it seems the channel has changed. Can anyone help me solve this problem?