From 8a5d8072ca4c32e1feea196eab40458d479108f3 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 8 Jun 2024 17:09:08 +0100 Subject: [PATCH] ignore nodes id is wrong --- oml/localnodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/localnodes.py b/oml/localnodes.py index 87e5003..3e9bbb3 100644 --- a/oml/localnodes.py +++ b/oml/localnodes.py @@ -144,6 +144,8 @@ class LocalNodes(dict): id = info.properties[b'id'].decode() if id == settings.USER_ID: return + if len(id) != settings.ID_LENGTH: + return if state_change is ServiceStateChange.Added: new = id not in self self[id] = {