This commit is contained in:
naskya 2024-07-01 20:04:32 +09:00
parent 3e8ae79727
commit 6e4e7f7386
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 3 additions and 3 deletions

View file

@ -372,7 +372,7 @@ fn create_new_server_config(
} }
}; };
let auto_email = match meta.email.as_ref() { let email = match meta.email.as_ref() {
Some(address) => Some(server::Email { Some(address) => Some(server::Email {
enabled: meta.enable_email, enabled: meta.enable_email,
address: address.to_owned(), address: address.to_owned(),
@ -487,7 +487,7 @@ fn create_new_server_config(
.try_into() .try_into()
.map_err(|_| Error::InvalidConfig("Invalid `port` number"))?, .map_err(|_| Error::InvalidConfig("Invalid `port` number"))?,
}, },
auto_email, email,
http_proxy, http_proxy,
media_proxy, media_proxy,
summaly_proxy, summaly_proxy,

View file

@ -40,7 +40,7 @@ pub struct Network {
pub listen: Listen, pub listen: Listen,
#[validate(nested)] #[validate(nested)]
#[validate(custom(function = "validate_email_struct"))] #[validate(custom(function = "validate_email_struct"))]
pub auto_email: Option<Email>, pub email: Option<Email>,
#[validate(nested)] #[validate(nested)]
pub http_proxy: Option<Proxy>, pub http_proxy: Option<Proxy>,
#[validate(nested)] #[validate(nested)]