diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index b3eb438..2b8c376 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,14 +97,13 @@ async fn main() -> Result<()> { // A broken htpasswd will abort startup. let auth_state = AuthState::from_settings(&args)?.context("htpasswd or user-header is required")?; - // A new swarm's first users, before the minutes of startup too: one nobody could - // manage doesn't start. - let first_users = if args.genesis { + // A new swarm's first users, if it is to have a user registry. + let first_users = if args.genesis && !args.bootstrap_users.is_empty() { let htpasswd = match args.htpasswd.as_deref() { Some(path) => api::auth::htpasswd_names(path)?, None => Vec::new(), }; - access::registry::first_users(&args.bootstrap_users, &htpasswd, &args.protocol_writers)? + access::registry::first_users(&args.bootstrap_users, &htpasswd) } else { Vec::new() }; |
