mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-09 16:00:27 +00:00
fix issue with unknown nodes
This commit is contained in:
parent
d087a3de67
commit
1805f55cf9
@ -39,8 +39,9 @@ def generate_graph(time_limit=60*60*3):
|
||||
|
||||
nodes = dict()
|
||||
def addAncestors(info):
|
||||
parent = NodeInfo("?", info.getParent())
|
||||
parent.label = "{} {}".format(parent.ip, parent.coords)
|
||||
coords = info.getParent()
|
||||
parent = NodeInfo("{} {}".format("?", coords), coords)
|
||||
parent.label = "?"
|
||||
nodes[parent.coords] = parent
|
||||
if parent.coords != parent.getParent(): addAncestors(parent)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user