Revamped GET /api/peers response format

This commit is contained in:
Mihail Slobodyanuk 2022-12-17 12:22:42 +02:00
parent 0ff6a63df5
commit b129d689a3
2 changed files with 4 additions and 4 deletions

View file

@ -325,7 +325,7 @@ func (a *AdminSocket) StartHttpServer(configFn string, nc *config.NodeConfig) {
if err := a.getPeersHandler(req, res); err != nil {
http.Error(w, err.Error(), 503)
}
b, err := json.Marshal(res)
b, err := json.Marshal(res.Peers)
if err != nil {
http.Error(w, err.Error(), 503)
}