mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-22 22:40:58 -04:00
Merge pull request #844 from Aareon/patch-2
fix(rnstatus): Add validation for missing -i flag when using -R
This commit is contained in:
commit
f3b72a8a3c
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
||||||
stats = None
|
stats = None
|
||||||
if remote:
|
if remote:
|
||||||
try:
|
try:
|
||||||
|
if management_identity is None:
|
||||||
|
raise ValueError("Remote management requires an identity file. Use -i to specify the path to a management identity.")
|
||||||
|
|
||||||
dest_len = (RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2
|
dest_len = (RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2
|
||||||
if len(remote) != dest_len:
|
if len(remote) != dest_len:
|
||||||
raise ValueError("Destination length is invalid, must be {hex} hexadecimal characters ({byte} bytes).".format(hex=dest_len, byte=dest_len//2))
|
raise ValueError("Destination length is invalid, must be {hex} hexadecimal characters ({byte} bytes).".format(hex=dest_len, byte=dest_len//2))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue