Browse Source

Always show self in cluster list (fixes #43)

Jakob Borg 12 years ago
parent
commit
13854250b3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      gui.go

+ 1 - 0
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)
 }