mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-13 23:01:00 +00:00
fix(sub): {{INBOUND}} = inbound remark, fix {{TRAFFIC_LEFT}} across inbounds (#5443)
Issue 1: the host endpoint remark no longer substitutes the inbound remark
as the config name. {{INBOUND}} always resolves to the inbound's own remark
and {{HOST}} to the host remark, so both can be shown side by side instead
of the host name appearing twice. configName() drops hostRemark entirely;
token help text updated in all locales.
Issue 2: client_traffics.email is globally unique, so a client shared across
several inbounds of one subscription has a single traffic row owned by one
inbound. statsForClient only searched the current inbound's preloaded
ClientStats, missing on every other inbound's link and falling back to
Up=Down=0 -- so {{TRAFFIC_LEFT}} printed the full quota. Build a per-request
email->stats map from all the subscription's inbounds (no extra queries) and
fall back to it.
This commit is contained in:
@@ -1761,7 +1761,7 @@
|
||||
"time": "Thời gian & trạng thái"
|
||||
},
|
||||
"descEMAIL": "Email khách hàng",
|
||||
"descINBOUND": "Tên cấu hình: ghi chú của host nếu được đặt, nếu không thì ghi chú của inbound",
|
||||
"descINBOUND": "Ghi chú của chính inbound (tên cấu hình)",
|
||||
"descHOST": "Ghi chú host",
|
||||
"descID": "UUID khách hàng",
|
||||
"descSHORT_ID": "8 ký tự đầu của UUID",
|
||||
|
||||
Reference in New Issue
Block a user