chore: Merge resolver service into client service

This commit is contained in:
theS1LV3R authored and Ellis Git committed 2026-07-09 18:22:25 +00:00
1 parent 2a342bcbc9
commit 0d5789f727
14 files changed
+91 -376

No files matched your search

+5 -2
View File
@@ -1017,7 +1017,7 @@ impl crate::Context<'_> {
.http_client(self.services.client.default.clone())
.build()?
} else {
&self.services.resolver.resolver
&self.services.client.resolver
};
let actual = resolver.resolve_server(server_name.as_str()).await?;
@@ -1027,7 +1027,10 @@ impl crate::Context<'_> {
| ResolvedDestination::Named(host, port) => format!("{host}:{port}"),
};
let msg = format!("Destination: {}\nHostname URI (SNI): {}", destination, actual.host);
let msg = format!(
"Destination: {}\nHostname URI (SNI): {}\nIs override?: {}\nResolution step: {}",
destination, actual.host, actual.is_override, actual.resolution_step
);
self.write_str(&msg).await
}