Commit graph

4 commits

Author SHA1 Message Date
Necronicle
109140124a fix(tunnel): start client read immediately, await socket.opened
Two bugs causing "Connecting..." hang:

1. tunnel.go: streamReadLoop was deferred until CONNECT_OK arrived,
   but client already sends TLS ClientHello before that. Data was
   lost → DC never responded → timeout. Fix: start readLoop
   immediately after sending CONNECT frame.

2. worker.js: connect() was called but socket.opened was not awaited
   before sending CONNECT_OK. Fix: await socket.opened, and fix
   Uint8Array buffer slicing for DATA relay.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 01:17:31 +03:00
Necronicle
569093fe06 build: recompile all 9 architectures with tunnel support
Fixed listener.go: removed SYS_GETSOCKOPT syscall (not available on
MIPS/PPC) — reverted to portable GetsockoptIPv6Mreq approach with
correct IPv6 address reconstruction from available 20 bytes.

Rebuilt binaries: arm64, amd64, arm, mips, mipsel, mips64el, ppc64,
riscv64, x86 — all now include --tunnel mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 01:17:30 +03:00
Necronicle
279da68654 build: recompile tg-mtproxy-client-linux-arm64 with tunnel support
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 01:17:30 +03:00
Necronicle
7a566cc273 feat(builds): бинарники для всех архитектур в репо
9 бинарников в mtproxy-client/builds/ для скачивания через CDN.
jsdelivr и raw.githubusercontent не блокируются в РФ.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 01:52:54 +03:00