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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user