3x-ui/internal
MHSanaei a4be5a0deb
fix(sub): recover {{TRAFFIC_USED}} for clients with orphaned traffic rows
statsForClient resolved usage only through paths keyed by client_traffics.inbound_id (preloaded ClientStats + the statsByEmail index). That id is written once by AddClientStat and never updated, so an inbound delete+recreate orphans the row from every loaded inbound, both paths miss, and the zero-traffic placeholder makes {{TRAFFIC_USED}} read 0.00B for pre-existing clients while the sub-info header (AggregateTrafficByEmails, email-keyed) stays correct.

Add a last-resort lookup by the globally-unique email, cached into statsByEmail for the request. Closes #5567.
2026-06-25 18:18:47 +02:00
..
config feat(panel): surface dev-build version in UI, bot, and CLI 2026-06-25 02:36:41 +02:00
database feat(iplimit): gate IP limit on fail2ban and reset stale limits 2026-06-22 23:15:58 +02:00
eventbus perf: prevent cron job overlap, auto-set GOMEMLIMIT, fix tgbot userStates race 2026-06-22 02:48:58 +02:00
logger refactor(frontend): move form-item hints from extra to tooltip 2026-06-17 17:24:16 +02:00
mtproto refactor(frontend): move form-item hints from extra to tooltip 2026-06-17 17:24:16 +02:00
sub fix(sub): recover {{TRAFFIC_USED}} for clients with orphaned traffic rows 2026-06-25 18:18:47 +02:00
tunnelmonitor feat(xray): add tunnel health monitor (#5480) 2026-06-24 22:01:37 +02:00
util perf: prevent cron job overlap, auto-set GOMEMLIMIT, fix tgbot userStates race 2026-06-22 02:48:58 +02:00
web feat(panel): surface dev-build version in UI, bot, and CLI 2026-06-25 02:36:41 +02:00
xray feat(panel): surface dev-build version in UI, bot, and CLI 2026-06-25 02:36:41 +02:00