Skip to content

Commit

Permalink
binarize handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jul 2, 2023
1 parent 5f0fda9 commit 23a8c70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hivemind_core/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23a8c70

Please sign in to comment.