Files
tunnel/internal/server
TZGyn cba7d2366b Fix truncated ClientHello parsing for some sizes
The handshake length expression combined shifts with +/|, so when bit 2
of the 24-bit length was set it computed four bytes too few. The
extensions block was then truncated, SNI and ALPN parsed as empty, and
the relay dropped the connection as "sni \"\" matches no tunnel
hostname". It only hit certain ClientHello sizes, so some routes or
ALPN choices reset while others worked.

Parenthesize the length and add a regression test with a synthetic
hello whose length sets bit 2.
2026-10-25 23:54:40 +08:00
..
2026-10-25 23:33:52 +08:00
2026-10-25 23:33:52 +08:00