diff --git a/mullvad-api/src/https_client_with_sni.rs b/mullvad-api/src/https_client_with_sni.rs index a6308df5c2fa..09e198ca3bcf 100644 --- a/mullvad-api/src/https_client_with_sni.rs +++ b/mullvad-api/src/https_client_with_sni.rs @@ -388,9 +388,9 @@ impl HttpsConnectorWithSni { .map_err(|err| io::Error::new(io::ErrorKind::TimedOut, err))? } - /// Resolve the provided `uri` to an IP and port using `address_cache` in the first place, and - /// using `dns_resolver` otherwise. If the URI contains an IP, that IP will be used instead. If - /// the URI contains a port, the port will be used. + /// 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,