Skip to content

FakeTLS (ee) doesn't work with MadelineProto 8.6.2 #1723

Description

@wmorgue

Hi.

I'm trying to connect MadelineProto through an MTProxy server using a FakeTLS (ee) secret.

Environment:

MadelineProto: 8.6.2
PHP: 8.3
Laravel worker
IPv6 disabled
Proxy works correctly in:
Telegram Desktop
official mobile Telegram clients

Connection code:

connectionSettings = new Connection();

$connectionSettings->setUseDoH(false);
$connectionSettings->setIpv6(false);

$connectionSettings->addProxy(
    ObfuscatedStream::class,
    [
        'address' => $proxySettings->proxy_address,
        'port'    => (int) $proxySettings->proxy_port,
        'secret'  => $proxySettings->proxy_secret,
    ]
);

$settings->setConnection($connectionSettings);

Example secret:

ee00000000000000000000000000000000646f6d61696e2e636f6d

MadelineProto log:

ReadLoop: Got unknown auth_key id
ReadLoop: Stopping read loop in DC 2.0 due to -404...
Connection: Reconnecting DC 2.0

Then it enters an infinite reconnect loop.

I also tested:

removing session file recreation
IPv4 only
disabling DoH
multiple MTProxy servers
converting secret to dd

Questions:

Is FakeTLS (ee) officially supported by MadelineProto?
If yes, is additional configuration required?
If not, should only dd secrets be used?

Documentation currently mentions normal and dd secrets, but I couldn't find any explicit mention of ee FakeTLS support:
https://docs.madelineproto.xyz/docs/PROXY.html

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions