github sleep3r/mtproto.zig v1.4.4

latest releases: v1.15.2, v1.15.1, v1.15.0...
3 months ago
🇷🇺 Что нового (RU)

Что чинит этот релиз

v1.4.4 — два фикса дашборда по репортам из Discussions. Только дашборд/CLI; протокол и поведение прокси не меняются — обновление безопасно.

Эндпоинт маскировки показывает реальный порт (#342)

В карточке Masking поле «Эндпоинт» имело захардкоженный :443 — на нестандартном порту (репорт: port = 7443) показывалось tls_domain:443. mask_port (внутренний бэкенд nginx) к этому полю отношения не имеет, и 443 не бралось из конфига вообще.

Теперь дашборд показывает tls_domain:<port> — реальный клиентский порт (public_port, если задан, иначе порт прослушивания). Это чисто отображение: сама маскировка всегда работала корректно.

Команда удалить только дашборд (#343)

Раньше существовал только полный mtbuddy uninstall (сносит весь прокси) — отдельной команды убрать только дашборд не было.

Добавлена mtbuddy setup dashboard --remove (алиас --uninstall): останавливает и отключает proxy-monitor, удаляет systemd-unit и /opt/mtproto-proxy/monitor, прокси не трогает. В интерактивном меню mtbuddy теперь то же самое: когда дашборд установлен, вместо «Установить дашборд» появляется «Удалить дашборд».

Обновить дашборд

sudo mtbuddy update              # поднимет до v1.4.4 (конфиг не трогается)
# или только дашборд:
sudo mtbuddy setup dashboard     # перезальёт ассеты дашборда

Проверено

zig build test249/249 + кросс-сборки x86_64-linux/aarch64-linux + zig fmt — зелёные.


🇬🇧 Release notes (EN)

What this release fixes

v1.4.4 is two dashboard fixes from reported Discussions. Dashboard/CLI only; the proxy protocol and behavior are unchanged — upgrading is safe.

Masking "Endpoint" shows the real port (#342)

The Masking card's "Endpoint" hardcoded :443, so a proxy on a non-443 port (reporter: port = 7443) showed tls_domain:443. mask_port is the internal nginx backend and is unrelated to this field; the 443 came from nothing in the config.

The dashboard now shows tls_domain:<port> — the real client-facing port (public_port if set, else the listen port). Display-only: the masking itself was always correct.

Command to remove just the dashboard (#343)

Previously only full mtbuddy uninstall existed (tears down the whole proxy) — there was no way to remove only the dashboard.

Added mtbuddy setup dashboard --remove (alias --uninstall): stops and disables proxy-monitor, removes the systemd unit and /opt/mtproto-proxy/monitor, and leaves the proxy running. The interactive mtbuddy menu now mirrors this too: once the dashboard is installed, the "Setup dashboard" entry is replaced by "Remove monitoring dashboard".

Update the dashboard

sudo mtbuddy update              # brings the install to v1.4.4 (config untouched)
# or just the dashboard:
sudo mtbuddy setup dashboard     # re-extracts the dashboard assets

Verified

zig build test249/249 + x86_64-linux/aarch64-linux cross-builds + zig fmt — green.

Changelog

  • fix(dashboard): show the real masking-endpoint port + add "setup dashboard --remove" (#344)
  • fix(dashboard): offer "Remove dashboard" in the interactive menu when installed (#346)

Full diff: v1.4.3...v1.4.4

Don't miss a new mtproto.zig release

NewReleases is sending notifications on new releases.