(&self, protocol: &str, port: u16)
| 134 | |
| 135 | impl PortMappingConfig { |
| 136 | pub fn is_allowed(&self, protocol: &str, port: u16) -> bool { |
| 137 | if !self.enabled { |
| 138 | return false; |
| 139 | } |
| 140 | self.range.iter().any(|r| r.contains(protocol, port)) |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | #[derive(Debug, Clone, Deserialize)] |
no test coverage detected