From 9713e739695ad1e80fe8d9a3f4503aad96f9fa90 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 20 May 2018 17:25:13 +0100 Subject: [PATCH] Fix dot --- src/yggdrasil/admin.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yggdrasil/admin.go b/src/yggdrasil/admin.go index 633ff7c3..90d0829a 100644 --- a/src/yggdrasil/admin.go +++ b/src/yggdrasil/admin.go @@ -501,18 +501,18 @@ func (a *admin) getResponse_dot() []byte { sessions := a.getData_getSessions() // Map of coords onto IP m := make(map[string]string) - m[self["coords"].(string)] = self["IP"].(string) + m[self["coords"].(string)] = self["ip"].(string) for _, peer := range peers { p := peer.asMap() - m[p["coords"].(string)] = p["IP"].(string) + m[p["coords"].(string)] = p["ip"].(string) } for _, node := range dht { n := node.asMap() - m[n["coords"].(string)] = n["IP"].(string) + m[n["coords"].(string)] = n["ip"].(string) } for _, node := range sessions { 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