diff options
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 e945fc0..1a9d68e 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 } }; |
