File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments