diff --git a/pyproject.toml b/pyproject.toml index c626710..2eaf1bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "2.1.20" +version = "2.1.21" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, { name="Alex Wolden", email="awolden@gmail.com" }, diff --git a/src/meshcore/commands/messaging.py b/src/meshcore/commands/messaging.py index fb5ef12..48deb2c 100644 --- a/src/meshcore/commands/messaging.py +++ b/src/meshcore/commands/messaging.py @@ -216,7 +216,7 @@ class MessagingCommands(CommandHandlerBase): if scope.startswith("#"): # an hash logger.debug(f"Setting scope from hash {scope}") scope_key = sha256(scope.encode("utf-8")).digest()[0:16] - elif scope == "0" or scope == "None": # disable + elif scope == "0" or scope == "None" or scope == "*" or scope == "": # disable scope_key = b"\0"*16 else: # assume the key has been sent directly scope_key = scope.encode("utf-8")