diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-17 02:19:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 02:19:23 +0200 |
commit | cb87cb0283fbe95ace2317b0617e7e74382bf4db (patch) | |
tree | b75c51f15680cfb1f3d6f17cd44e485ec2b58e4f /test_util/src | |
parent | 867a6d303285cdffd060e6bb4b0e97de73925cfe (diff) |
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 <dj.srivastava23@gmail.com>
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |