feat: add native tls for backend client (#377)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
ac332ca438
commit
d9dcf86be3
|
|
@ -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"] }
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue