v0.34.16
This commit is contained in:
1 parent
f27fbf6a30
commit
2c03fcf248
18 files changed
+430
-920
No files matched your search
@@ -208,9 +208,10 @@ pub fn compile_with_active(
|
||||
<= MAX_ROUTES,
|
||||
"too many rules across all redirect hosts (max 256)"
|
||||
);
|
||||
let config_bytes = serde_json::to_vec(&config)?.len();
|
||||
ensure!(
|
||||
serde_json::to_vec(&config)?.len() <= MAX_CONFIG_BYTES,
|
||||
"configuration too large"
|
||||
config_bytes <= MAX_CONFIG_BYTES,
|
||||
"configuration too large ({config_bytes} bytes, maximum {MAX_CONFIG_BYTES} bytes)"
|
||||
);
|
||||
let listeners = crate::vhost::listener_plan(&config, &desired_policy)?;
|
||||
crate::stream::validate(
|
||||
|
||||
Reference in new issue
Block a user