Skip to content

Commit

Permalink
set up listenaddress directly
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher committed Dec 21, 2023
1 parent 6c8f506 commit d9260e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/handlers/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ func (h *Node) Health(w http.ResponseWriter, r *http.Request) error {
var resp healthCheckJSON

// Retrieve P2P listen addresses.
for _, addr := range h.ListenAddresses {
resp.Advanced.ListenAddresses = append(resp.Advanced.ListenAddresses, addr)
}
resp.Advanced.ListenAddresses = h.ListenAddresses

// Count peers and connections.
peers := h.Network.Peers()
Expand Down

0 comments on commit d9260e4

Please sign in to comment.