Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify multiple IP addresses for resolver overrides #1622

Merged
merged 1 commit into from Sep 19, 2022

Conversation

lpraneis
Copy link
Contributor

@lpraneis lpraneis commented Sep 9, 2022

This change adds a ClientBuilder::resolve_to_addrs method to accept a slice of SocketAddrs for overriding DNS resolution for a single domain. Allowing multiple IPs more accurately reflects behavior of getaddrinfo and allows users to rely on hyper's happy eyeballs algorithm to connect to a host that can accept traffic on IPv4 and IPv6.

Builds upon the work in #1277

closes #1621

This change allows the `ClientBuilder::resolve_to_addrs` method to accept a
slice of `SocketAddr`s for overriding resolution for a single domain.
Allowing multiple IPs more accurately reflects behavior of `getaddrinfo`
and allows users to rely on hyper's happy eyeballs algorithm to connect
to a host that can accept traffic on IPv4 and IPv6.
@seanmonstar seanmonstar merged commit ae2d521 into seanmonstar:master Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to provide multiple IP addresses to DNS resolution override
3 participants