Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

country_code_by_name_v6 does not work if hostname doesn't have an IPv6 address #8

Closed
csware opened this issue May 19, 2014 · 1 comment

Comments

@csware
Copy link

csware commented May 19, 2014

country_code_by_name_v6 does not work if hostname doesn't have an IPv6 address. if this is the case the IPv4 address should be transparently converted to an IPv6 address (e.g. "::ffff:IPv4" in order to make the lookup work as expected).

@oschwald
Copy link
Member

Thanks for the suggestion. I would suggest taking a look at our GeoIP2 API, which automatically handles IPv4 addresses in the way that you describe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants