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

IPv6 Bind #251

Closed
GoldLine1337 opened this issue Nov 23, 2020 · 3 comments · Fixed by #337
Closed

IPv6 Bind #251

GoldLine1337 opened this issue Nov 23, 2020 · 3 comments · Fixed by #337

Comments

@GoldLine1337
Copy link

Hello, I'm trying to bind a IPV6 address as ip source for an exampe to facebook.com

can you give me an example of the code?

@ycd
Copy link

ycd commented Feb 17, 2021

I'd also love to have an example of this.

@algesten
Copy link
Owner

ureq connects to whatever socket address it gets here

The default std resolver, will figure out the IP address for the host name using rust std lib.

The SocketAddr returned from the resolver can be a mix of ipv4 and ipv6 and ureq doesn't care.

I've made some example code of how to write a bespoke resolver in #337

@ycd
Copy link

ycd commented Mar 2, 2021

That's awesome @algesten, thank you!

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.

3 participants