diff --git a/Cargo.toml b/Cargo.toml index e78bbb39..12374ea1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ dragonfly-client-util = { path = "dragonfly-client-util", version = "0.1.27" } dragonfly-client-init = { path = "dragonfly-client-init", version = "0.1.27" } thiserror = "1.0" dragonfly-api = "2.0.106" -reqwest = { version = "0.11.27", features = ["stream", "native-tls", "rustls-tls"] } +reqwest = { version = "0.11.27", features = ["stream", "native-tls", "default-tls", "rustls-tls"] } rcgen = { version = "0.12.1", features = ["x509-parser"] } hyper = { version = "1.2", features = ["full"] } hyper-util = { version = "0.1.2", features = ["client", "client-legacy", "tokio", "server-auto", "http1", "http2"] } diff --git a/dragonfly-client-backend/src/http.rs b/dragonfly-client-backend/src/http.rs index 1154a4c9..4a10ba2a 100644 --- a/dragonfly-client-backend/src/http.rs +++ b/dragonfly-client-backend/src/http.rs @@ -137,7 +137,7 @@ impl HTTP { } None => { // Default TLS client config with native roots. - let client = reqwest::Client::builder().build()?; + let client = reqwest::Client::builder().use_native_tls().build()?; Ok(client) } }