diff options
Diffstat (limited to 'net-misc/wstunnel/files/wstunnel-10.5.4-fix_tests.patch')
| -rw-r--r-- | net-misc/wstunnel/files/wstunnel-10.5.4-fix_tests.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/wstunnel/files/wstunnel-10.5.4-fix_tests.patch b/net-misc/wstunnel/files/wstunnel-10.5.4-fix_tests.patch new file mode 100644 index 000000000000..8ead9406392f --- /dev/null +++ b/net-misc/wstunnel/files/wstunnel-10.5.4-fix_tests.patch @@ -0,0 +1,18 @@ +backport https://github.com/erebe/wstunnel/commit/41fed82.patch +fix testsuite +see https://github.com/erebe/wstunnel/issues/503 +--- a/wstunnel/src/test_integrations.rs ++++ b/wstunnel/src/test_integrations.rs +@@ -25,6 +25,12 @@ use url::Host; + + #[fixture] + fn dns_resolver() -> DnsResolver { ++ if tokio_rustls::rustls::crypto::aws_lc_rs::default_provider() ++ .install_default() ++ .is_err() ++ { ++ let _ = tokio_rustls::rustls::crypto::ring::default_provider().install_default(); ++ } + DnsResolver::new_from_urls(&[], None, SoMark::new(None), true).expect("Cannot create DNS resolver") + } + |
