Files
mirror-3x-ui/frontend/src
Sanaei 32615e1d76 fix(mtproto): stop claiming mtg auto-detects the public IP for ad-tags
The Public IPv4/IPv6 hint told operators to leave the field blank so mtg
would detect the address itself. mtg-multi has no such detection for the
middle proxy: with the field empty it feeds its socket's local address
into the middle-proxy key schedule, which only matches what Telegram
sees when the public IP sits on the server's own interface.

Behind NAT or a Docker bridge the handshake is refused, so every
connection of an ad-tagged client spends 5-7 seconds on the middle proxy
before falling back to a direct connection, and the sponsored channel
never appears. Measured against real Telegram with a tagged and three
untagged clients; the untagged ones were unaffected.

The hint in all 14 locales now says when blank is correct and when the
address must be entered. The two code comments repeating the claim are
corrected with it.
2026-11-29 13:21:29 +03:30
..