clients should not be mandatory in configuration

closes #284
This commit is contained in:
Ferdinand Schober
2025-04-01 12:44:43 +02:00
parent 3ec23d7171
commit 1590245963

View File

@@ -51,7 +51,7 @@ struct ConfigToml {
port: Option<u16>,
release_bind: Option<Vec<scancode::Linux>>,
cert_path: Option<PathBuf>,
clients: Vec<TomlClient>,
clients: Option<Vec<TomlClient>>,
authorized_fingerprints: Option<HashMap<String, String>>,
}
@@ -370,6 +370,7 @@ impl Config {
self.config_toml
.as_ref()
.map(|c| c.clients.clone())
.unwrap_or_default()
.into_iter()
.flatten()
.map(From::<TomlClient>::from)