From 85b261de5b0937d3b58bcaafe93e40f6067cc378 Mon Sep 17 00:00:00 2001 From: Roj Date: Wed, 20 Mar 2024 17:41:41 +0300 Subject: [PATCH] Update session_string.tsx --- lib/session_string.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session_string.tsx b/lib/session_string.tsx index 5f119de..4b9da25 100644 --- a/lib/session_string.tsx +++ b/lib/session_string.tsx @@ -153,7 +153,7 @@ export function serializeMtcute( ); // flags writer.write(new Uint8Array([0x01])); // dc_version - writer.write(new Uint8Array([dcId])); // dc_id + writer.writeBytes(new Uint8Array([dcId])); // dc_id writer.writeInt32(ip.includes(":") ? MTCUTE_IPV6_FLAG : 0); // dc_flags writer.writeString(ip); // dc_ip writer.writeInt32(port); // dc_port