Support the IPv6 endpoint
Closed this issue · 4 comments
sindresorhus commented
I think we could do a breaking change and return IPv6 by default and fall back to IPv4. Need to check what the IPv6 endpoint returns when IPv6 is not supported. Could then have an option to pick either: auto
, ipv6
, ipv4
.
Not sure how this fits with the endpoint
option though.
Thoughts?
IssueHunt Summary
stroncium has been rewarded.
Sponsors (Total: $40.00)
- issuehunt ($40.00)
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
jackwilsdon commented
https://api6.ipify.org returns the IPv4 address if IPv6 is not supported.
sindresorhus commented
@jackwilsdon Cool. Thanks for letting me know.
Then I guess the option could just be ipv6
and ipv4
and defaulting to ipv6
. Or maybe just a boolean: {useIPv6: true}
.
IssueHuntBot commented
@issuehunt has funded $40.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
issuehunt-oss commented
@sindresorhus has rewarded $36.00 to @stroncium. See it on IssueHunt
- 💰 Total deposit: $40.00
- 🎉 Repository reward(0%): $0.00
- 🔧 Service fee(10%): $4.00