From 4a60f97e79dc7fcda4bb8792d16bc812701dd3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Fri, 22 Nov 2024 08:03:10 +0100 Subject: [PATCH] Add doc comment for resolve_address --- mullvad-api/src/https_client_with_sni.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mullvad-api/src/https_client_with_sni.rs b/mullvad-api/src/https_client_with_sni.rs index 19bc5d15aa3e..09e198ca3bcf 100644 --- a/mullvad-api/src/https_client_with_sni.rs +++ b/mullvad-api/src/https_client_with_sni.rs @@ -388,6 +388,9 @@ impl HttpsConnectorWithSni { .map_err(|err| io::Error::new(io::ErrorKind::TimedOut, err))? } + /// Resolve the provided `uri` to an IP and port. If the URI contains an IP, that IP will be used. + /// Otherwise `address_cache` will be preferred, and `dns_resolver` will be used as a fallback. + /// If the URI contains a port, then that port will be used. async fn resolve_address( address_cache: AddressCache, dns_resolver: &dyn DnsResolver,