fix: Use correct DNS caching for SNI to function properly

This removes the old (broken) DNS caching method for reqwest, and replaces
it with resolvematrix' `MatrixDnsResolver`, as it correctly implements
caching and overrides for correct SNI behavior.
This commit is contained in:
theS1LV3R authored and Ellis Git committed 2026-07-10 13:44:59 +00:00
1 parent 2e1015846d
commit 8b6a176901
7 files changed
+94 -140

No files matched your search

+1 -1
View File
@@ -1017,7 +1017,7 @@ impl crate::Context<'_> {
.http_client(self.services.client.default.clone())
.build()?
} else {
&self.services.client.resolver
&self.services.client.matrix_resolver
};
let actual = resolver.resolve_server(server_name.as_str()).await?;