Returns `true` if `host` is one of the well-known driver-injected aliases for the host machine (e.g. `host.openshell.internal`).
(host: &str)
| 2251 | /// Returns `true` if `host` is one of the well-known driver-injected aliases |
| 2252 | /// for the host machine (e.g. `host.openshell.internal`). |
| 2253 | fn is_host_gateway_alias(host: &str) -> bool { |
| 2254 | let h = normalize_host_lookup_key(host); |
| 2255 | HOST_GATEWAY_ALIASES |
| 2256 | .iter() |
| 2257 | .any(|alias| alias.eq_ignore_ascii_case(h)) |
| 2258 | } |
| 2259 | |
| 2260 | /// Returns `true` if `ip` is a known cloud instance metadata endpoint that |
| 2261 | /// must never be exempted from SSRF blocking. |
no test coverage detected