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 #11

Closed
coderholic opened this issue Feb 16, 2014 · 6 comments
Closed

Add support for IPv6 #11

coderholic opened this issue Feb 16, 2014 · 6 comments

Comments

@coderholic
Copy link

Maxmind now offer IPv6 versions of the GeoLite City and ASN files at http://dev.maxmind.com/geoip/legacy/geolite/. This module doesn't support them though:

coffee> maxmind.init('GeoIPASNumv6.dat')
true
coffee> maxmind.getOrganization('2601:9:7680:363:acaf:ac31:b75:bb03')
Error: Required DB not available. Possible types: "21"
    at _getDb (/home/bmd/ipinfo/node_modules/maxmind/lib/lookup_service.js:32:9)
    at Object.module.exports.getOrganization (/home/bmd/ipinfo/node_modules/maxmind/lib/lookup_service.js:183:12)
    at repl:3:13
    at REPLServer.replDefaults.eval (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/repl.js:27:28)
    at repl.js:239:12
    at Interface.<anonymous> (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/repl.js:55:9)
    at Interface.EventEmitter.emit (events.js:95:17)
    at Interface._onLine (readline.js:202:10)
    at Interface._line (readline.js:531:8)
    at Interface._ttyWrite (readline.js:760:14)
    at ReadStream.onkeypress (readline.js:99:10)
    at ReadStream.EventEmitter.emit (events.js:117:20)
    at emitKey (readline.js:1095:12)
    at ReadStream.onData (readline.js:840:14)
    at ReadStream.EventEmitter.emit (events.js:95:17)
    at ReadStream.<anonymous> (_stream_readable.js:746:14)
    at ReadStream.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at ReadStream.Readable.push (_stream_readable.js:127:10)
    at TTY.onread (net.js:526:21)
@runk
Copy link
Owner

runk commented Feb 16, 2014

Are you really using ipv6? Or just worrying about future?

@coderholic

@coderholic
Copy link
Author

I really want to be able to lookup IPv6 geolocation and ASN details, yes.

@runk
Copy link
Owner

runk commented Feb 16, 2014

Alright, I'll try to find time to add those things 👍

@coderholic
Copy link
Author

Awesome. Thank you!

On 16 February 2014 13:45, Dmitry Shirokov notifications@github.com wrote:

Alright, I'll try to find time to add those things [image: 👍]

Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-35215018
.

@runk
Copy link
Owner

runk commented Mar 5, 2014

Added getCountryV6 method. Other lookups including ASN will be added soon.

@runk
Copy link
Owner

runk commented Mar 10, 2014

Added getOrganizationV6 method. @coderholic

@runk runk closed this as completed Mar 23, 2014
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

2 participants