This commit is contained in:
Mateusz Gruszczyński committed 2026-10-27 13:49:21 +01:00
1 parent f27fbf6a30
commit 2c03fcf248
18 files changed
+430 -920

No files matched your search

+3 -2
View File
@@ -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(