Skip to content

MTProto does not send TLS SNI since 12.2 #1912

@cyyself

Description

@cyyself
  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues

Description

After upgrading from 12.1.1 to 12.2, MTProto no longer sends TLS SNI, which breaks my own proxy setup. I discovered this since my HAProxy SNI fronted MTG server stopped working for the new version of Telegram since 12.2. And using Wireshark to inspect the packet found that no SNI during the TLS handshake now.

Expected Behavior

Should include SNI during handshake.

Actual Behavior

No SNI during TLS Client Hello.

Steps to Reproduce

  1. Follow the readme in mtg to set up an MTProto server. When executing mtg generate-secret example.com, the example.com should be the SNI in TLS Client Hello.
  2. Run the Telegram App on macOS, set the MTProto proxy to MTG.
  3. Using Wireshark to inspect the TLS Client Hello, and found that no SNI.

Environment

Device: iPhone 17 Pro

iOS version: 26.1

App version: 12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions