ignore nodes id is wrong

This commit is contained in:
j 2024-06-08 17:09:08 +01:00
parent e2ea8fe42f
commit 8a5d8072ca

View file

@ -144,6 +144,8 @@ class LocalNodes(dict):
id = info.properties[b'id'].decode() id = info.properties[b'id'].decode()
if id == settings.USER_ID: if id == settings.USER_ID:
return return
if len(id) != settings.ID_LENGTH:
return
if state_change is ServiceStateChange.Added: if state_change is ServiceStateChange.Added:
new = id not in self new = id not in self
self[id] = { self[id] = {