async fn handle_dns_req<R, U>(
    tor_client: TorClient<R>,
    socket_id: usize,
    packet: &[u8],
    addr: SocketAddr,
    socket: Arc<U>,
    current_requests: &Mutex<HashMap<DnsCacheKey, Vec<DnsResponseTarget<U>>>>
) -> Result<()> where
    R: Runtime,
    U: UdpSocket
Available on crate features experimental-api and dns-proxy only.
Expand description

Given a datagram containing a DNS query, resolve the query over the Tor network and send the response back.