(endpoint: &EndpointProfile)
| 1353 | } |
| 1354 | |
| 1355 | fn endpoint_is_valid(endpoint: &EndpointProfile) -> bool { |
| 1356 | if endpoint.host.trim().is_empty() { |
| 1357 | return false; |
| 1358 | } |
| 1359 | if !endpoint.ports.is_empty() { |
| 1360 | return endpoint |
| 1361 | .ports |
| 1362 | .iter() |
| 1363 | .all(|port| (1..=65_535).contains(port)); |
| 1364 | } |
| 1365 | (1..=65_535).contains(&endpoint.port) |
| 1366 | } |
| 1367 | |
| 1368 | #[derive(Debug, Clone)] |
| 1369 | struct TokenGrantOverrideBinding { |
no test coverage detected