WIP
This commit is contained in:
parent
ee34620d53
commit
fe646f4372
1 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue