diff options
| author | tv <tv@krebsco.de> | 2026-11-01 05:32:36 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 05:43:56 +0100 |
| commit | ac81f5a68bf3259d1e0c49c93b2f84635b873824 (patch) | |
| tree | f239d0a5d2f153ec4618b6413b9e5b735cb743eb /src/main.rs | |
| parent | b644b4a8084a1060c9bc27566dfac8470e1090b5 (diff) | |
allow creating all key files
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a725174..a6f2937 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,11 +76,14 @@ async fn main() -> Result<()> { .context("node-key-file is required")?; let node_key = Arc::new(identity::NodeKey::load( node_key_file, - args.create_node_key, + args.node_key_create, )?); info!(node_id = %node_key.id(), "Node identity"); let swarm_key = match &args.swarm_key_file { - Some(path) => Some(Arc::new(swarm::auth::SwarmKey::from_file(path)?)), + Some(path) => Some(Arc::new(swarm::auth::SwarmKey::from_file( + path, + args.swarm_key_create, + )?)), None => { warn!("No swarm key: any node that can reach a member may join"); None |
