feat: use custom DNS resolver for HTTP(S)

This commit is contained in:
link2xt
2024-07-20 12:59:51 +00:00
parent 2a605b93cd
commit 8f400dda85
7 changed files with 193 additions and 58 deletions

View File

@@ -43,7 +43,7 @@ async fn lookup_host_with_timeout(
///
/// If `load_cache` is true, appends cached results not older than 30 days to the end
/// or entries from fallback cache if there are no cached addresses.
async fn lookup_host_with_cache(
pub(crate) async fn lookup_host_with_cache(
context: &Context,
hostname: &str,
port: u16,