Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add support for IPv6 #11

Closed
coderholic opened this Issue · 6 comments

2 participants

@coderholic

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
Owner

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

@coderholic

@coderholic

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

@runk
Owner

Alright, I'll try to find time to add those things :+1:

@coderholic
@runk
Owner

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

@runk
Owner

Added getOrganizationV6 method. @coderholic

@runk runk closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.