diff options
| author | tv <tv@krebsco.de> | 2026-10-23 11:20:00 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-23 11:20:00 +0200 |
| commit | 3c53394def0ba28555fefa97f2a68e09b97a0b70 (patch) | |
| tree | 1c37f2e546da5300a50744c0e1747a7c737c9462 /src/main.rs | |
| parent | 7af7b78f1434bc7ffc0333f2430dbd1934ec0570 (diff) | |
consistently use the words node, peer, and seed
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 96758ec..7151032 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,15 +67,20 @@ struct Args { use_value_delimiter = true, default_value = "tls://127.0.0.1:9651" )] + /// Peers of the supervised Mycelium daemon (overlay links such as + /// `tls://host:9651`), not continuum peers. pub mycelium_peers: Vec<String>, + /// Seeds: how to reach a node of the swarm to join, as a Mycelium public key, a + /// Mycelium IPv6 address, or a host name with an AAAA record for one. Without seeds, + /// the node starts a new swarm (genesis). #[arg(long, value_name = "STRING,[STRING...]", value_delimiter = ',')] seeds: Option<Vec<String>>, #[arg(long, value_name = "PATH")] htpasswd: String, - /// Pre-shared swarm key: only peers that know it may join (raw bytes, at least 16; + /// Pre-shared swarm key: only nodes that know it may join (raw bytes, at least 16; /// e.g. `head -c 32 /dev/urandom`). Without it, anyone who knows the swarm ID can. #[arg(long, value_name = "PATH")] swarm_key_file: Option<PathBuf>, @@ -100,7 +105,7 @@ async fn main() -> Result<()> { let swarm_key = match &args.swarm_key_file { Some(path) => Some(Arc::new(swarm::auth::SwarmKey::from_file(path)?)), None => { - warn!("No swarm key: any peer that learns the swarm ID can join"); + warn!("No swarm key: any node that learns the swarm ID can join"); None } }; |
