mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
tidy logs
This commit is contained in:
parent
4ce68dd9a0
commit
4142c2b19e
1 changed files with 3 additions and 6 deletions
9
web.py
9
web.py
|
|
@ -1040,17 +1040,14 @@ def main():
|
|||
if args.identity_file is not None:
|
||||
identity = RNS.Identity(create_keys=False)
|
||||
identity.load(args.identity_file)
|
||||
print("Reticulum Identity has been loaded from file.")
|
||||
print(identity)
|
||||
print("Reticulum Identity <{}> has been loaded from file.".format(identity.hash.hex()))
|
||||
elif args.identity_base64 is not None:
|
||||
identity = RNS.Identity(create_keys=False)
|
||||
identity.load_private_key(base64.b64decode(args.identity_base64))
|
||||
print("Reticulum Identity has been loaded from base64.")
|
||||
print(identity)
|
||||
print("Reticulum Identity <{}> has been loaded from base64.".format(identity.hash.hex()))
|
||||
else:
|
||||
identity = RNS.Identity(create_keys=True)
|
||||
print("Reticulum Identity has been randomly generated.")
|
||||
print(identity)
|
||||
print("Reticulum Identity <{}> has been randomly generated.".format(identity.hash.hex()))
|
||||
|
||||
# init app
|
||||
reticulum_webchat = ReticulumWebChat(identity, args.storage_dir, args.reticulum_config_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue