From 5a3a21c2c02df1af3722a4148c0dcd776aa8a411 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Tue, 1 Apr 2025 13:22:08 +0200 Subject: [PATCH] clients should not be mandatory in configuration (#285) closes #284 --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index a6989ab..41f442d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -51,7 +51,7 @@ struct ConfigToml { port: Option, release_bind: Option>, cert_path: Option, - clients: Vec, + clients: Option>, authorized_fingerprints: Option>, } @@ -370,6 +370,7 @@ impl Config { self.config_toml .as_ref() .map(|c| c.clients.clone()) + .unwrap_or_default() .into_iter() .flatten() .map(From::::from)