ignore nodes id is wrong
This commit is contained in:
parent
e2ea8fe42f
commit
8a5d8072ca
1 changed files with 2 additions and 0 deletions
|
@ -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] = {
|
||||||
|
|
Loading…
Reference in a new issue