v0.15.0

sleep3r/mtproto.zigv0.15.0Apr 10, 2026by sleep3r

Upgrading?

AI Summary

Adds full support for SOCKS5 and HTTP CONNECT as upstreams and renames `amnezia_wg` to a generic `tunnel` type.

Key Highlights

  • Full support for SOCKS5 (RFC 1928) and HTTP CONNECT proxy upstreams.
  • Renamed `amnezia_wg` to generic `tunnel` type supporting any WireGuard variant.
  • Automatic backward compatibility with legacy configurations.

New Features

  • Asynchronous SOCKS5 and HTTP CONNECT proxy handshakes.
  • Generic VPN tunnel type supporting multiple interfaces.
  • Legacy configuration auto-mapping.

Full Release Notes

### 🇷🇺 Что нового (RU)

Что решает этот релиз

• Полноценная поддержка SOCKS5 (RFC 1928) и HTTP CONNECT прокси в качестве upstream. Теперь весь исходящий к DC трафик можно маршрутизировать через другие прокси серверы с аутентификацией.
• Переход к более универсальной концепции VPN туннелей. Вместо жестко зашитого `amnezia_wg` теперь можно использовать любой вариант WireGuard / AmneziaWG в рамках единого типа `tunnel`.

Что изменено

• **SOCKS5 и HTTP CONNECT**: Добавлены полностью асинхронные неблокирующие хэндшейки (greeting -> auth -> connect), встроенные прямо в наш epoll event loop.
• **Generic VPN Tunnel**: Тип `amnezia_wg` переименован в `tunnel`. Опции `interface` теперь вынесены в секцию `[upstream.tunnel]`, что позволяет mtbuddy управлять как `awg0`, так и классическим `wg0`. Вывод команд локализован. 
• **Обновление конфига**: Теперь тип туннеля поддерживает значения: `auto | direct | tunnel | socks5 | http`. При этом старые конфигурации с `amnezia_wg` и `wireguard` автоматически читаются как `tunnel`.

Important

• **Обратная совместимость**: Ничего переписывать в `config.toml` не обязательно! Старые значения полностью поддерживаются.

### 🇬🇧 Release notes (EN)

What this release addresses

• Full support for SOCKS5 (RFC 1928) and HTTP CONNECT proxies as upstreams. All outbound DC traffic can now be routed over external authenticated proxies.
• A more generic approach to VPN tunnels. Instead of hardcoded `amnezia_wg`, any WireGuard / AmneziaWG variant can now be wrapped using a unified `tunnel` upstream type.

What changed

• **SOCKS5 & HTTP CONNECT**: Integrated fully asynchronous, non-blocking proxy handshakes directly into our epoll event loop.
• **Generic VPN Tunnel**: Renamed `amnezia_wg` type to `tunnel`. The VPN interface can now be specified via `interface` in the `[upstream.tunnel]` section, allowing `mtbuddy` to manage both `awg0` and `wg0` seamlessly.
• **Config updates**: The upstream `type` now accepts `auto | direct | tunnel | socks5 | http`. Legacy configs using `amnezia_wg` or `wireguard` are automatically mapped to `tunnel`.

Important

• **Backward compatible**: No manual `config.toml` changes are required upon update! Existing configuration values are fully supported.

--------

### Features

* SOCKS5 & HTTP CONNECT upstream proxies, generic tunnel type ([#158](https://github.com/sleep3r/mtproto.zig/issues/158)) ([ef5bc9f](https://github.com/sleep3r/mtproto.zig/commit/ef5bc9f83bc3ac8db3b09f3919b24fdf0591458f))

Related Repositories