Closed tybulewicz closed 10 years ago
I briefly looked at the code and there doesn't seem to be any parsing for IPv6 addresses. See this line. Once parsing of the addresses into byte arrays is added, I think most of the rest of the code should work without modification.
Using GeoIP2-Country database I have some problems with IPv6 addresses. I'm using the same database file (GeoIP2-Country.mmdb md5sum: dae3c9bc2f4b780ba114abb555be94a8)
countries.getGeoData('2a00:1450:4001:c02::8a') returns
null
When using the PHP Api and on http://www.maxmind.com/en/geoip_demo resolves to IEcountries.getGeoData('2600:1010:b00e:4658:488b:55d4:86a4:3c61') throws Error: MaxmindDBReader: Unable to find IP:2600:1010:b00e:4658:488b:55d4:86a4:3c61 in Database When using the PHP Api and on http://www.maxmind.com/en/geoip_demo resolves to US