Skip to content

Commit

Permalink
indicate preference
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 2, 2025
1 parent 9118883 commit 7c6a58c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hivemind_bus_client/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ovos_utils.log import LOG

from hivemind_bus_client.client import HiveMessageBusClient
from hivemind_bus_client.encryption import SupportedEncodings, SupportedCiphers
from hivemind_bus_client.encryption import SupportedEncodings, SupportedCiphers, optimal_ciphers
from hivemind_bus_client.identity import NodeIdentity
from hivemind_bus_client.message import HiveMessage, HiveMessageType
from poorman_handshake import HandShake, PasswordHandShake
Expand Down Expand Up @@ -144,8 +144,9 @@ def start_handshake(self):
LOG.info("hivemind does not support binarization protocol")

payload = {"binarize": self.binarize,
"encodings": list(c for c in SupportedEncodings),
"ciphers": list(c for c in SupportedCiphers)}
"encodings": [SupportedEncodings.JSON_B64,
SupportedEncodings.JSON_HEX],
"ciphers": optimal_ciphers()}
if self.pswd_handshake is not None:
payload["envelope"] = self.pswd_handshake.generate_handshake()
else:
Expand Down

0 comments on commit 7c6a58c

Please sign in to comment.