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
+7
View File
@@ -545,8 +545,15 @@ allmende init # create identity, show the 12-w
allmende run --region u1x [--bootstrap <addr>] # replicate a region, serve the API on 127.0.0.1:8080
allmende run --public [--listen …] # a bootstrap node: DHT server and relay
allmende recover # restore from the phrase; also yearly cert renewal
allmende address # how others can join through this running node
```
`address` asks the node on `--http` (default 127.0.0.1:8080) for the `share`
field of `/api/v1/status`: its addresses reachable from the internet (direct
first, then through a relay; none for loopback and private ones) and prints
`allmende run --bootstrap <address>`. It lets a person join through any node
when the built-in bootstrap name is down.
`run` also takes `--no-default-bootstrap`, `--no-dht` and `--no-mdns`, and keeps
the peers it has met in `peers.json` next to its keys.