v0.24.13
This commit is contained in:
1 parent
bd077754a9
commit
ed7e3377c1
40 files changed
+1764
-365
No files matched your search
@@ -6,6 +6,7 @@ pub fn compile_with_active(
|
||||
previous: Option<&Snapshot>,
|
||||
active: &[crate::vhost::Listener],
|
||||
) -> Result<Snapshot> {
|
||||
config.migrate_legacy_user_agent_blocking()?;
|
||||
config.administration.validate(&config.tls)?;
|
||||
config.logging.validate()?;
|
||||
config.error_log.validate()?;
|
||||
@@ -254,7 +255,7 @@ pub fn compile_with_active(
|
||||
guarded_bindings.sort();
|
||||
guarded_bindings.dedup();
|
||||
let global_headers = config.headers.compile()?;
|
||||
let user_agent_blocking = config.user_agent_blocking.compile()?;
|
||||
let global_security = config.global_security.compile()?;
|
||||
ensure!(
|
||||
config.host_policies.len() <= 256,
|
||||
"too many host ACL policies"
|
||||
@@ -368,7 +369,7 @@ pub fn compile_with_active(
|
||||
redirects,
|
||||
not_found_hosts,
|
||||
host_acls,
|
||||
user_agent_blocking,
|
||||
global_security,
|
||||
headers: global_headers,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user