From 407bf196417b80c903f6ae65d4c3202be72286d5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 3 Apr 2026 15:45:51 +0700 Subject: [PATCH] Fix parts of client hello generation. Inspired by wide internet discussions and #30513. --- Telegram/SourceFiles/mtproto/details/mtproto_tls_socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/mtproto/details/mtproto_tls_socket.cpp b/Telegram/SourceFiles/mtproto/details/mtproto_tls_socket.cpp index d26835b5fc..a3c9628854 100644 --- a/Telegram/SourceFiles/mtproto/details/mtproto_tls_socket.cpp +++ b/Telegram/SourceFiles/mtproto/details/mtproto_tls_socket.cpp @@ -205,12 +205,12 @@ using BigNumContext = openssl::Context; S("\x44\xcd\x00\x05\x00\x03\x02\x68\x32"_q); } StartPermutationElement(); { - S("\xfe\x02"_q); + S("\xfe\x0d"_q); OpenScope(); S("\x00\x00\x01\x00\x01"_q); R(1); S("\x00\x20"_q); - R(20); + R(32); OpenScope(); E(); CloseScope();