Skip to main content

Module net

Module net 

Source

Structs§

BlockedIpResolver

Functions§

host_to_ip
is_blocked_ip
outbound_client
A [reqwest::Client] for requests to user-provided urls, refusing to connect to any address covered by APP_BLOCKED_CIDRS, both on the initial request and on every redirect.
resolve_allowed_addresses
Resolves host and drops every address covered by APP_BLOCKED_CIDRS, for connections that cannot be routed through outbound_client and have to dial the returned addresses directly.