sindresorhus/ipify

Support the IPv6 endpoint

Closed this issue · 4 comments

Issuehunt badges

https://www.ipify.org/

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 stroncium has been rewarded.

Sponsors (Total: $40.00)

Tips

https://api6.ipify.org returns the IPv4 address if IPv6 is not supported.

@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}.

@issuehunt has funded $40.00 to this issue.


@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