Skip to content

Commit 7dbf2d9

Browse files
committed
Default to native-tls for now
Defaulting to native-tls so that users can try out the rustls mode before it's turned on by default.
1 parent 4bb81e2 commit 7dbf2d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/utils/utils.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,20 @@ fn download_file_(
243243

244244
// Keep the curl env var around for a bit
245245
let use_curl_backend = process().var_os("RUSTUP_USE_CURL").is_some();
246-
let avoid_rustls = process().var_os("RUSTUP_AVOID_RUSTLS").is_some();
246+
let use_rustls = process().var_os("RUSTUP_USE_RUSTLS").is_some();
247247
let (backend, notification) = if use_curl_backend {
248248
(Backend::Curl, Notification::UsingCurl)
249249
} else {
250-
let tls_backend = if avoid_rustls {
251-
TlsBackend::Default
250+
let tls_backend = if use_rustls {
251+
TlsBackend::Rustls
252252
} else {
253-
#[cfg(feature = "reqwest-rustls-tls")]
253+
#[cfg(feature = "reqwest-default-tls")]
254254
{
255-
TlsBackend::Rustls
255+
TlsBackend::Default
256256
}
257-
#[cfg(not(feature = "reqwest-rustls-tls"))]
257+
#[cfg(not(feature = "reqwest-default-tls"))]
258258
{
259-
TlsBackend::Default
259+
TlsBackend::Rustls
260260
}
261261
};
262262
(Backend::Reqwest(tls_backend), Notification::UsingReqwest)

0 commit comments

Comments
 (0)