(host: &str, port: u32)
| 301 | } |
| 302 | |
| 303 | pub fn generated_rule_name(host: &str, port: u32) -> String { |
| 304 | let sanitized = host |
| 305 | .replace(['.', '-'], "_") |
| 306 | .chars() |
| 307 | .filter(|c| c.is_alphanumeric() || *c == '_') |
| 308 | .collect::<String>(); |
| 309 | format!("allow_{sanitized}_{port}") |
| 310 | } |
| 311 | |
| 312 | fn apply_operation( |
| 313 | policy: &mut SandboxPolicy, |
no outgoing calls
no test coverage detected