This commit is contained in:
naskya 2024-07-01 21:18:25 +09:00
parent ee34620d53
commit fe646f4372
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -628,15 +628,13 @@ fn create_new_server_config(
}),
};
let mut security: Option<server::Security> = None;
if meta.secure_mode
let security = if meta.secure_mode
|| meta.private_mode
|| captcha.is_some()
|| meta.enable_active_email_validation
|| meta.enable_ip_logging
{
security = Some(server::Security {
Some(server::Security {
require_authorized_fetch: match meta.secure_mode {
false => None,
true => Some(true),
@ -654,8 +652,10 @@ fn create_new_server_config(
false => None,
true => Some(true),
},
});
}
})
} else {
None
};
let server_config = server::Config {
config_revision: Revision::V1,