v0.11.1

sleep3r/mtproto.zigv0.11.1Apr 9, 2026by sleep3r

Upgrading?

AI Summary

Focuses on reliability and UX for masking and monitoring, adding self-healing mechanisms and better dashboard integration.

Key Highlights

  • Auto self-healing for masking services via systemd timer
  • Automatic routing to host veth in network namespaces
  • Enhanced dashboard with per-user proxy links
  • Updated `/api/stats` endpoint

New Features

  • Self-healing masking timer
  • Automatic netns routing
  • Per-user proxy links in dashboard

Full Release Notes

## [0.11.1](https://github.com/sleep3r/mtproto.zig/compare/v0.11.0...v0.11.1) (2026-04-09)

<img width="1374" height="566" alt="123" src="https://github.com/user-attachments/assets/f5b557db-3d87-4869-817e-d374f87baaba" />

### 🇷🇺 Release notes (RU)

**Что решает этот релиз**
- Повышает надёжность HTTP-маскировки в netns/tunnel-развёртываниях за счёт автоматического самовосстановления (`mtproto-mask-health.timer`) для `nginx` и `mtproto-proxy`.
- Добавляет автоматическую маршрутизацию маскировочного трафика на хостовой veth (`10.200.200.1`) при работе внутри сетевого пространства имён (non-init netns) — без новых ключей конфигурации.
- Расширяет дашборд мониторинга: состояние маскировки и персональные пользовательские ссылки (`tg://` / `t.me`) с бейджами direct-route из конфига.

**Что изменено**
- **Masking self-healing**:
  - Новый systemd timer `mtproto-mask-health.timer` периодически проверяет состояние `nginx` и `mtproto-proxy` и автоматически перезапускает упавшие сервисы.
  - Устраняет сценарий, когда после сбоя маскировка оставалась «мёртвой» до ручного вмешательства.
- **Автоматическая маршрутизация в netns**:
  - При работе внутри network namespace прокси автоматически добавляет маршрут к хостовому veth-адресу (`10.200.200.1`) для корректной работы маскировочного трафика.
  - Не требует ручной настройки и не добавляет новых ключей в `config.toml`.
- **Monitor UX**:
  - Эндпоинт `/api/stats` теперь отдаёт секции `users` и `masking`.
  - Дашборд отображает статус маскировки и генерирует персональные прокси-ссылки для каждого пользователя.

**Важно**
- Миграция `config.toml` не требуется.
- Для активации watchdog-таймера необходимо перезапустить deploy/install/update скрипты на существующих серверах.

### 🇬🇧 Release notes (EN)

**What this release addresses**
- Hardens masking reliability in netns/tunnel deployments with automatic self-healing (`mtproto-mask-health.timer`) for `nginx` and `mtproto-proxy`.
- Adds automatic local masking routing to host veth (`10.200.200.1`) when running inside non-init netns, without introducing new config keys.
- Extends the monitor dashboard with masking health state and per-user proxy links (`tg://` / `t.me`) including direct-route badges from config.

**What changed**
- **Masking self-healing**:
  - New systemd timer `mtproto-mask-health.timer` periodically checks `nginx` and `mtproto-proxy` status and automatically restarts failed services.
  - Eliminates scenarios where masking stayed down after a crash until manual intervention.
- **Automatic netns routing**:
  - When running inside a network namespace, the proxy now automatically adds a route to the host veth address (`10.200.200.1`) for correct masking traffic flow.
  - Requires no manual setup and introduces no new `config.toml` keys.
- **Monitor UX**:
  - `/api/stats` endpoint now exposes `users` and `masking` sections.
  - Dashboard displays masking status and generates per-user proxy links.

**Important**
- No `config.toml` migration is required.
- Re-run deploy/install/update scripts on existing servers to provision the new masking watchdog units.

---

### Bug Fixes

* **deploy:** masking reliability, monitor users and proxy links ([#115](https://github.com/sleep3r/mtproto.zig/issues/115)) ([b80288f](https://github.com/sleep3r/mtproto.zig/commit/b80288f1affd53b34033ea12b28415bfc4a55833))

Related Repositories