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'))