allmende address: how others can join through a running node (status field 'share')
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
+4
-2
@@ -198,8 +198,10 @@ func (s *server) status(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
writeJSON(w, http.StatusOK, map[string]any{
|
||||
"peer_id": s.Node.ID().String(),
|
||||
"addrs": s.Node.Addrs(),
|
||||
"peer_id": s.Node.ID().String(),
|
||||
"addrs": s.Node.Addrs(),
|
||||
// What someone else can pass to --bootstrap to join through this node.
|
||||
"share": s.Node.ShareAddrs(),
|
||||
"author": s.Device.Cert.Author,
|
||||
"device": s.Device.Cert.Device,
|
||||
"regions": s.regions(),
|
||||
|
||||
Reference in New Issue
Block a user