Skip to content

fix: support secured multi-secret handshakes and warm DC routing - #36

Draft
AndreyOsipuk wants to merge 4 commits into
dolonet:masterfrom
AndreyOsipuk:codex/fix-mtg-tspu-mask-rewind
Draft

fix: support secured multi-secret handshakes and warm DC routing#36
AndreyOsipuk wants to merge 4 commits into
dolonet:masterfrom
AndreyOsipuk:codex/fix-mtg-tspu-mask-rewind

Conversation

@AndreyOsipuk

Copy link
Copy Markdown

Summary

  • classify secured (dd) handshakes before FakeTLS parsing;
  • preserve/replay handshake bytes during protocol detection and mask-host fallback;
  • match multiple configured secrets for secured handshakes;
  • bypass FakeTLS/doppelganger for secured sessions;
  • add a bounded warm Telegram DC pool to absorb route/backoff flaps;
  • keep compatibility with existing FakeTLS (ee) clients.

Validation

  • targeted unit tests for obfuscation, anti-replay, connection rewind, and DC pool pass;
  • full suite reaches only existing external-network failures in httpbin-backed tests (mtglib/TestHTTPSRequest, network/TestRealHTTPRequest).

The production binary built from this branch is deployed to the mtg nodes behind pr5–pr8 relays. DD response shaping remains disabled in production because Android connectivity is faster and stable without the experimental fragmentation layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant