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

Add support for IPv6 database #17

Open
evgenyneu opened this issue May 30, 2012 · 4 comments
Open

Add support for IPv6 database #17

evgenyneu opened this issue May 30, 2012 · 4 comments

Comments

@evgenyneu
Copy link

There is a IPv6 version of GeoLite database here: http://www.maxmind.com/app/geolite. It looks like it is not supported yet, as it shows the error

geoip.rb:186:in `throw': uncaught throw "Invalid GeoIP database type, can't look up Country by IP" (ArgumentError)
@cjheath
Copy link
Owner

cjheath commented May 30, 2012

The database search code will be completely different. It'll be a case of doing basically what I did when I wrote the first version, which is to get Maxmind's GPL'd C code and transliterate it into Ruby. It's unlikely I'll get to this soon, but I have a weekend away coming up so it's possible - I'll grab a copy of the data file and the C code to check out. Otherwise you are welcome to do the same, of course - pull requests always welcome ;).

@evgenyneu
Copy link
Author

Cool. I would not have time to do it in near future, I am afraid. But if I do - I will update you here, so we do not both work on it simultaneously.

@kixorz
Copy link

kixorz commented Sep 9, 2013

This would be a great feature. Do you have any plans to implement it?

@cjheath
Copy link
Owner

cjheath commented Sep 9, 2013

Does this commit work for you? I haven't had time to test it:
shovtyuk@3e690f9

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

No branches or pull requests

3 participants