diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index d8704a0..5f2403e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,6 +105,12 @@ async fn main() -> Result<()> { } else { Default::default() }; + let first_policy = if args.genesis { + access::policy::first(args.bootstrap_policy.as_deref(), &args.bootstrap_keys) + .map_err(anyhow::Error::msg)? + } else { + None + }; if !first_users.is_empty() && let Some(path) = args.htpasswd.as_deref() { @@ -283,6 +289,7 @@ async fn main() -> Result<()> { swarm_key, protocol_writers: args.protocol_writers.iter().cloned().collect(), first_users, + first_policy, node_key: Some(Arc::clone(&node_key)), sign_every: args.sign_every, token_lifetime: args.token_lifetime, |
