Specify app name

This commit is contained in:
Mylloon 2023-04-11 00:57:30 +02:00
parent c2e65f6365
commit d4ff53cee8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -14,6 +14,7 @@ pub struct FileConfig {
pub mail: Option<String>,
pub lang: Option<String>,
pub onion: Option<String>,
pub app_name: Option<String>,
}
impl FileConfig {
@ -21,6 +22,7 @@ impl FileConfig {
Self {
scheme: Some("http".to_string()),
port: Some(8080),
app_name: Some("EWP".to_string()),
..FileConfig::default()
}
}
@ -44,6 +46,7 @@ impl FileConfig {
mail: test(a.mail, d.mail),
lang: test(a.lang, d.lang),
onion: test(a.onion, d.onion),
app_name: test(a.app_name, d.app_name),
}
}
}