mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
committed by
GitHub
parent
3ec23d7171
commit
5a3a21c2c0
@@ -51,7 +51,7 @@ struct ConfigToml {
|
|||||||
port: Option<u16>,
|
port: Option<u16>,
|
||||||
release_bind: Option<Vec<scancode::Linux>>,
|
release_bind: Option<Vec<scancode::Linux>>,
|
||||||
cert_path: Option<PathBuf>,
|
cert_path: Option<PathBuf>,
|
||||||
clients: Vec<TomlClient>,
|
clients: Option<Vec<TomlClient>>,
|
||||||
authorized_fingerprints: Option<HashMap<String, String>>,
|
authorized_fingerprints: Option<HashMap<String, String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -370,6 +370,7 @@ impl Config {
|
|||||||
self.config_toml
|
self.config_toml
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|c| c.clients.clone())
|
.map(|c| c.clients.clone())
|
||||||
|
.unwrap_or_default()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.flatten()
|
.flatten()
|
||||||
.map(From::<TomlClient>::from)
|
.map(From::<TomlClient>::from)
|
||||||
|
|||||||
Reference in New Issue
Block a user