mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 16:35:07 +03:00
Revamped GET /api/peers response format
This commit is contained in:
parent
0ff6a63df5
commit
b129d689a3
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue