From abe90d0772b1e859a64e045a1dcb96ebe6d152f1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 3 Jun 2020 15:47:54 +1000 Subject: [PATCH] use trust-dns in reqwest The default DNS resolution, if interrupted by an Abortable, will cause a panic: https://github.com/hyperium/hyper/blob/57ef271500e5655a883a7ad7500d087f01f03c4b/src/client/connect/dns.rs#L144 --- rslib/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index 0d7b7a229..f2aa85cbc 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -59,10 +59,10 @@ version = "0.23.1" features = ["trace", "functions", "collation", "bundled"] [target.'cfg(linux)'.dependencies] -reqwest = { version = "0.10.1", features = ["json", "socks", "stream", "native-tls-vendored"] } +reqwest = { version = "0.10.1", features = ["json", "socks", "stream", "trust-dns", "native-tls-vendored"] } [target.'cfg(not(linux))'.dependencies] -reqwest = { version = "0.10.1", features = ["json", "socks", "stream" ] } +reqwest = { version = "0.10.1", features = ["json", "socks", "stream", "trust-dns" ] } [build-dependencies] prost-build = "0.6.1"