Browse Source

fix running with shared keys...

main
John-Mark Gurney 2 years ago
parent
commit
f4e3ac0fcf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lora.py

+ 2
- 2
lora.py View File

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


Loading…
Cancel
Save