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 provide multiple IP addresses to DNS resolution override #1621

Closed
lpraneis opened this issue Sep 9, 2022 · 0 comments · Fixed by #1622
Closed

Add ability to provide multiple IP addresses to DNS resolution override #1621

lpraneis opened this issue Sep 9, 2022 · 0 comments · Fixed by #1622

Comments

@lpraneis
Copy link
Contributor

lpraneis commented Sep 9, 2022

Currently, ClientBuilder::resolve() accepts a domain and a single SocketAddr that is used to override DNS resolution for a specified host. It would be useful to allow this override to accept multiple SocketAddrs to allow a user to provide both an IPv4 and an IPv6 address for a host. If both are provided, hyper will use the happy eyeballs algorithm to decide which protocol to connect over. This is specifically helpful for cases where a user might run on both IPv4 and IPv6-only networks and would like to provide a DNS resolution override in both cases for the same hostname.

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 a pull request may close this issue.

1 participant