diff --git a/tests/proxy.rs b/tests/proxy.rs index 96f4745..3b9f7e7 100644 --- a/tests/proxy.rs +++ b/tests/proxy.rs @@ -43,8 +43,7 @@ async fn simple_test() -> Result<()> { let client = reqwest::Client::builder() .proxy(reqwest::Proxy::http(format!( - "http://{}:{}", - addr.ip(), + "http://localhost:{}", addr.port() ))?) .build()?;