From 5a4e45f39e57384610e90d85f409355c4ff469cf Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sat, 3 Dec 2022 09:12:48 -0800 Subject: [PATCH] fix running with shared keys... --- lora.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lora.py b/lora.py index 058df08..0d5f5a9 100644 --- a/lora.py +++ b/lora.py @@ -352,8 +352,8 @@ async def main(): if args.shared_key is not None: skdata = pathlib.Path(args.shared_key).read_bytes() - lorakwargs = dict(shared_key=skdata) - commsinitargs = (lorakwargs['shared_key'], ) + lorakwargs = dict(shared=skdata) + commsinitargs = (make_pktbuf(lorakwargs['shared']), None, None) else: privkeydata = pathlib.Path(args.privkey).read_text().strip() privkey = X25519.frombytes(codecs.decode(privkeydata, 'hex'))