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:
2026-11-19 10:31:19 +01:00
co-authored by Claude Sonnet 5.5
parent d94c7b5b86
commit f83a305ee5
9 changed files with 246 additions and 3 deletions
+4 -2
View File
@@ -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(),