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 resolved address or redirect covered by APP_BLOCKED_CIDRS. IP-literal urls skip resolution, so start requests with outbound_request to refuse those as well.
outbound_request
Starts a request on outbound_client, refusing a url whose host is an IP address covered by APP_BLOCKED_CIDRS before anything is connected.
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.
unbracket