From 23a8c7026182430808435712758edec0ed8e509d Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Sun, 2 Jul 2023 23:25:48 +0100 Subject: [PATCH] binarize handshake --- hivemind_core/protocol.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hivemind_core/protocol.py b/hivemind_core/protocol.py index b0f9f55..dc54324 100644 --- a/hivemind_core/protocol.py +++ b/hivemind_core/protocol.py @@ -245,6 +245,7 @@ def handle_new_client(self, client: HiveMindClientConnection): "handshake": needs_handshake, # tell the client it must do a handshake or connection will be dropped "min_protocol_version": min_version, "max_protocol_version": max_version, + "binarize": True, # report we support the binarization scheme "preshared_key": client.crypto_key is not None, # do we have a pre-shared key (V0 proto) "password": client.pswd_handshake is not None, # is password available (V1 proto, replaces pre-shared key) "crypto_required": self.require_crypto # do we allow unencrypted payloads