fix(admin): различать достижимость Traffic Stats API и соответствие профилю

Признак на странице конфигурации отвечал только на вопрос «достучится ли
админка», поэтому 0.0.0.0 показывался как норма — хотя внутренний control plane
при нём опубликован на всех интерфейсах, а оркестратор такой конфигурации не
создаёт. Состояний теперь четыре: канон профиля, wildcard, не-канонический
loopback и недостижимый адрес.

Backend не тронут: он по-прежнему отвечает только на вопрос достижимости —
превращать лишнюю публикацию в отказ обслуживания значило бы отключить всех
пиров. Исправлено ложное утверждение в его комментарии: пустой хост `:36712` в
Go означает все интерфейсы, а не loopback.

Удалены мёртвые фразы common.wait/enableSuccess/disableSuccess — остатки
операций запуска, остановки и смены версии Hysteria, которых у панели нет.
This commit is contained in:
2026-09-03 03:39:42 +05:00
parent cb20d8d28f
commit b315001288
10 changed files with 204 additions and 30 deletions
+9 -5
View File
@@ -100,9 +100,9 @@ export default {
save: "Save",
update: "Update",
downloadSuccess: "Download successful",
wait: "The version is being changed, please wait a moment",
enableSuccess: "Hysteria2 start successful",
disableSuccess: "Hysteria2 stop successful",
// `wait`, `enableSuccess` and `disableSuccess` are gone together with the
// operations the panel does not have: starting, stopping and changing the
// version of Hysteria. That lifecycle belongs to systemd and the orchestrator.
success: "Success",
refresh: "Refresh",
yes: "Yes",
@@ -335,7 +335,11 @@ export default {
trafficStatsMissing: "Traffic Stats API is not configured",
trafficStatsMissingHint:
"Without the trafficStats section the device limit, traffic accounting and forced disconnect do not work: the panel reaches Hysteria only through this API.",
trafficStatsNotLoopback:
"the address is not loopback: the panel reaches the Traffic Stats API over 127.0.0.1 only",
trafficStatsUnreachable:
"the panel cannot reach this address: the Traffic Stats API is queried over loopback only. While the addresses differ, the device limit, traffic accounting and forced disconnect do not work",
trafficStatsWildcard:
"the API is reachable but listens on every interface. The HY2XS production profile uses 127.0.0.1: run hy2xs-orchestrator reconfigure",
trafficStatsNonCanonical:
"the API is reachable but the address differs from 127.0.0.1 — the orchestrator never produces such a configuration",
},
};