4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-08-14 15:58:10 +00:00

use yakamo's node list when possible, otherwise use the last hexadecitet of the address

This commit is contained in:
Arceliar
2018-12-12 18:58:35 -06:00
parent e3dafeb12c
commit 4b2ed4901d
3 changed files with 11 additions and 7 deletions

View File

@@ -4,13 +4,13 @@ from database import NodeDB
import graphPlotter
import urllib, json
url = "current" #alternatively "http://y.yakamo.org:3000/current"
url = "http://y.yakamo.org:3000/current"
# nodes indexed by coords
class NodeInfo:
def __init__(self, ip, coords):
self.ip = str(ip)
self.label = str(ip) # TODO readable labels
self.label = str(ip).split(":")[-1]
self.coords = str(coords)
self.version = "unknown"
def getCoordList(self):