Expand description
Network utilities shared across crates.
Enums§
- Resolve
Error - Error returned by
resolve_and_validatewhen a hostname cannot be safely resolved.
Functions§
- is_
loopback_ host - Returns
trueifhostis a loopback target: an IP literal in the loopback range (127.0.0.0/8,::1) or the well-known hostnamelocalhost(case-insensitive). - is_
private_ ip - Returns
trueifaddris a non-routable or private IP address that should be blocked for outbound connections (SSRF defense). - resolve_
and_ validate - Resolves
host:portvia DNS and rejects the result if any resolved address is private, loopback, link-local, or otherwise non-routable peris_private_ip.