mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Always show self in cluster list (fixes #43)
This commit is contained in:
parent
e6078f9449
commit
13854250b3
1
gui.go
1
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user