mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-29 14:04:46 +03:00
feat(sub): report why a subscription balancer emits nothing (#7209)
A subscription balancer whose inbounds were deleted, disabled, changed to a protocol with no JSON outbound, left without clients or closed by their hosts simply vanished from the JSON subscription, and nothing in the panel or the log said why. GET /panel/api/sub-balancers now returns a problems[] array per balancer with stable codes: unknown_inbound, disabled_inbound, json_incapable_protocol, inbound_without_clients, hosts_excluded_from_json and no_members. Settings -> Sub Balancers shows a warning tag whose tooltip names each cause and the affected inbounds, and the log records a balancer's problems when they change instead of on every listing. The advisories are read from the stored rows and never change what a subscription emits: a balancer with no usable member is still omitted. The list of JSON-incapable protocols is pinned to the renderer, the subscription allowlist and the form by tests.
This commit is contained in:
@@ -1736,6 +1736,16 @@
|
||||
"sortOrderHelp": "Позиция в списке подписки, чередуется с порядком инбаундов; при равных номерах балансировщик идёт после инбаунда.",
|
||||
"inbounds": "Инбаунды",
|
||||
"inboundsCount": "{count} Инбаунды",
|
||||
"problems": "Проблемы",
|
||||
"problemsCount": "Проблем: {count}",
|
||||
"problem": {
|
||||
"unknown_inbound": "Инбаунд больше не существует",
|
||||
"disabled_inbound": "Инбаунд выключен",
|
||||
"json_incapable_protocol": "У протокола нет JSON-аутбаунда, участником он быть не может",
|
||||
"no_members": "Нет рабочего участника: балансер исключается из JSON-подписки",
|
||||
"inbound_without_clients": "У инбаунда нет клиентов, поэтому он не попадает ни в одну подписку",
|
||||
"hosts_excluded_from_json": "Все включённые хосты этого инбаунда исключены из JSON-формата"
|
||||
},
|
||||
"weights": "Веса участников",
|
||||
"weightsHelp": "Только для LeastLoad: чем меньше вес, тем чаще выбирается участник; без значения вес равен 1.",
|
||||
"enabled": "Включён",
|
||||
|
||||
Reference in New Issue
Block a user