mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2025-08-14 17:08:09 +00:00
use labels from nodeinfo if they're defined
This commit is contained in:
@@ -35,6 +35,7 @@ def generate_graph(time_limit=60*60*3):
|
||||
toAdd = []
|
||||
for ip in data:
|
||||
info = NodeInfo(ip, data[ip][0])
|
||||
if len(data[ip]) >= 3: info.label = data[ip][2]
|
||||
toAdd.append(info)
|
||||
|
||||
nodes = dict()
|
||||
|
Reference in New Issue
Block a user