From cb87cb0283fbe95ace2317b0617e7e74382bf4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 17 May 2023 02:19:23 +0200 Subject: fix: support "fetch" over HTTPS for IP addresses (#18499) This commit adds support for connecting to IP addresses over HTTPS. This is done by updating "rustls" to "0.21.0" and other related crates. Closes https://github.com/denoland/deno/issues/7660 Closes https://github.com/denoland/deno/issues/17967 --------- Co-authored-by: Divy Srivastava --- test_util/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test_util/src') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index e647c0a4c..054298b54 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -488,11 +488,11 @@ async fn get_tls_config( let mut config = rustls::ServerConfig::builder() .with_safe_defaults() - .with_client_cert_verifier( + .with_client_cert_verifier(Arc::new( rustls::server::AllowAnyAnonymousOrAuthenticatedClient::new( root_cert_store, ), - ) + )) .with_single_cert(certs, PrivateKey(key)) .map_err(|e| anyhow!("Error setting cert: {:?}", e)) .unwrap(); -- cgit v1.2.3