This commit is contained in:
Alexey
2026-08-22 16:22:07 +03:00
parent bb0d3ba927
commit fb47ad149c
57 changed files with 675 additions and 710 deletions
+1 -3
View File
@@ -78,9 +78,7 @@ pub(crate) async fn clear_synlimit_rules_all_backends() -> Result<bool, String>
async fn clear_synlimit_rules_for_namespace(namespace: &SynLimitNamespace) -> Result<bool, String> {
if !has_firewall_privileges() {
return Err(
"SYN limiter cleanup requires root or CAP_NET_ADMIN privileges".to_string(),
);
return Err("SYN limiter cleanup requires root or CAP_NET_ADMIN privileges".to_string());
}
let mut errors = Vec::new();