From 512fb97ffc35376d8569145f8b8b6ce515365729 Mon Sep 17 00:00:00 2001 From: Scott Dupree <707090@users.noreply.github.com> Date: Mon, 17 Aug 2020 14:02:09 -0400 Subject: [PATCH] Use proxy's DNS in TOR example (#1003) Fix #899 --- examples/tor_socks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tor_socks.rs b/examples/tor_socks.rs index d80835b..7b3985c 100644 --- a/examples/tor_socks.rs +++ b/examples/tor_socks.rs @@ -6,7 +6,7 @@ #[tokio::main] async fn main() -> Result<(), reqwest::Error> { // Make sure you are running tor and this is your socks port - let proxy = reqwest::Proxy::all("socks5://127.0.0.1:9050").expect("tor proxy should be there"); + let proxy = reqwest::Proxy::all("socks5h://127.0.0.1:9050").expect("tor proxy should be there"); let client = reqwest::Client::builder() .proxy(proxy) .build()