Skip to content

Commit 4a60f97

Browse files
committed
Add doc comment for resolve_address
1 parent e20c65f commit 4a60f97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mullvad-api/src/https_client_with_sni.rs

+3
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ impl HttpsConnectorWithSni {
388388
.map_err(|err| io::Error::new(io::ErrorKind::TimedOut, err))?
389389
}
390390

391+
/// Resolve the provided `uri` to an IP and port. If the URI contains an IP, that IP will be used.
392+
/// Otherwise `address_cache` will be preferred, and `dns_resolver` will be used as a fallback.
393+
/// If the URI contains a port, then that port will be used.
391394
async fn resolve_address(
392395
address_cache: AddressCache,
393396
dns_resolver: &dyn DnsResolver,

0 commit comments

Comments
 (0)