diff --git a/src/iptables_wrapper.rs b/src/iptables_wrapper.rs index ab74c39..1bc06b5 100644 --- a/src/iptables_wrapper.rs +++ b/src/iptables_wrapper.rs @@ -8,7 +8,7 @@ pub fn is_port_secured(port: u16, docker: bool) -> bool { } for rule in rules.unwrap() { - if rule.contains(&format!("-p tcp --dport {} -j DROP", port)) { + if rule.contains(&format!("-p tcp -m tcp --dport {} -j DROP", port)) { return true; } }