mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-09-22 04:34:41 +00:00
- protocol_flag/1: map client protocol to correct RPC_PROXY_REQ flags mtp_abridged -> FLAG_ABRIDGED (0x40000000 = RPC_F_COMPACT) mtp_intermediate -> FLAG_INTERMEDIATE (0x20000000 = RPC_F_MEDIUM) mtp_secure -> FLAG_INTERMEDIATE | FLAG_PAD (0x28000000) Previously always sent FLAG_ABRIDGED regardless of protocol. - Decode RPC_PING from Telegram and respond with RPC_PONG Matches reference C implementation (tcp_rpcs_default_execute). - Expand UpsStatic tuple to 4 elements (ConnId, Addr, AdTag, Protocol) so protocol is available at encode time. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| bench_codec_decode.erl | ||
| bench_codec_encode.erl | ||
| mtp_prop_gen.erl | ||
| mtp_test_client.erl | ||
| mtp_test_cmd_rpc.erl | ||
| mtp_test_datacenter.erl | ||
| mtp_test_echo_rpc.erl | ||
| mtp_test_metric.erl | ||
| mtp_test_middle_server.erl | ||
| prop_mtp_abridged.erl | ||
| prop_mtp_aes_cbc.erl | ||
| prop_mtp_codec.erl | ||
| prop_mtp_fake_tls.erl | ||
| prop_mtp_full.erl | ||
| prop_mtp_intermediate.erl | ||
| prop_mtp_obfuscated.erl | ||
| prop_mtp_rpc.erl | ||
| prop_mtp_statefull.erl | ||
| single_dc_SUITE.erl | ||
| test-sys.config | ||