From 13854250b31e46d39b71846fa40482fd495d2403 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 1 Feb 2014 11:22:41 +0100 Subject: [PATCH] Always show self in cluster list (fixes #43) --- gui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gui.go b/gui.go index a0be3a65..63938fcb 100644 --- a/gui.go +++ b/gui.go @@ -84,6 +84,7 @@ func restGetConfig(w http.ResponseWriter) { res["myID"] = myID res["repository"] = config.OptionMap("repository") res["nodes"] = config.OptionMap("nodes") + res["nodes"].(map[string]string)[myID] = "self" w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(res) }