mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +00:00
Fix dot
This commit is contained in:
parent
a6ef7166ea
commit
9713e73969
@ -501,18 +501,18 @@ func (a *admin) getResponse_dot() []byte {
|
|||||||
sessions := a.getData_getSessions()
|
sessions := a.getData_getSessions()
|
||||||
// Map of coords onto IP
|
// Map of coords onto IP
|
||||||
m := make(map[string]string)
|
m := make(map[string]string)
|
||||||
m[self["coords"].(string)] = self["IP"].(string)
|
m[self["coords"].(string)] = self["ip"].(string)
|
||||||
for _, peer := range peers {
|
for _, peer := range peers {
|
||||||
p := peer.asMap()
|
p := peer.asMap()
|
||||||
m[p["coords"].(string)] = p["IP"].(string)
|
m[p["coords"].(string)] = p["ip"].(string)
|
||||||
}
|
}
|
||||||
for _, node := range dht {
|
for _, node := range dht {
|
||||||
n := node.asMap()
|
n := node.asMap()
|
||||||
m[n["coords"].(string)] = n["IP"].(string)
|
m[n["coords"].(string)] = n["ip"].(string)
|
||||||
}
|
}
|
||||||
for _, node := range sessions {
|
for _, node := range sessions {
|
||||||
n := node.asMap()
|
n := node.asMap()
|
||||||
m[n["coords"].(string)] = n["IP"].(string)
|
m[n["coords"].(string)] = n["ip"].(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start building a tree from all known nodes
|
// Start building a tree from all known nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user