Skip to main content

bind_dns_resolver

Function bind_dns_resolver 

Source
pub async fn bind_dns_resolver<R: Runtime>(
    runtime: R,
    tor_client: TorClient<R>,
    listen: Listen,
) -> Result<DnsProxy<R>>
Expand description

Bind to a set of DNS ports, and return a new DnsProxy.

Takes no action until run_dns_proxy is called.