handle aliases without names
This commit is contained in:
parent
3893963553
commit
db4dec7270
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ class NodeDB:
|
|||
node.add_mac(mac)
|
||||
self._nodes.append(node)
|
||||
|
||||
node.name = alias['name']
|
||||
if 'name' in alias:
|
||||
node.name = alias['name']
|
||||
|
||||
if 'vpn' in alias and alias['vpn']:
|
||||
node.interfaces[mac].vpn = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue