fix self
All checks were successful
release-tag / release-image (push) Successful in 1m25s

This commit is contained in:
2025-09-27 23:53:17 +02:00
parent b142a0b1a5
commit 0bf22b6120

View File

@@ -136,6 +136,7 @@ func (n *Node) peersHandler(w http.ResponseWriter, r *http.Request) {
var list []Peer
list = append(list, n.self)
for _, p := range n.peers {
//p.Self = false
list = append(list, *p)
}
writeJSON(w, http.StatusOK, list)
@@ -421,6 +422,7 @@ func (n *Node) PeerList() []Peer {
out = append(out, n.self)
for _, p := range n.peers {
cp := *p
cp.Self = false
out = append(out, cp)
}
return out