diff --git a/nomadnet/ui/textui/Browser.py b/nomadnet/ui/textui/Browser.py index 59578e1..8e40928 100644 --- a/nomadnet/ui/textui/Browser.py +++ b/nomadnet/ui/textui/Browser.py @@ -279,7 +279,7 @@ class Browser: components = url.split(":") if len(components) == 1: - if len(components[0]) == 20: + if len(components[0]) == (RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2: try: destination_hash = bytes.fromhex(components[0]) except Exception as e: @@ -288,7 +288,7 @@ class Browser: else: raise ValueError("Malformed URL") elif len(components) == 2: - if len(components[0]) == 20: + if len(components[0]) == (RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2: try: destination_hash = bytes.fromhex(components[0]) except Exception as e: