geoip-lite
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -16,4 +16,4 @@ var fs = require('fs'), | ||
var lastline = sz/10-1; | ||
var lastip = buff.readUInt32(lastline*10+4, 'big'); | ||
var firstip = buff.readUInt32(0, 'big'); | ||
var lastip = buff.readUInt32(lastline*10+4, true); | ||
var firstip = buff.readUInt32(0, true); | ||
@@ -29,4 +29,4 @@ lookup4 = function(ip) { | ||
line = Math.round((cline-fline)/2)+fline; | ||
floor = buff.readUInt32(line*10, 'big'); | ||
ceil = buff.readUInt32(line*10+4, 'big'); | ||
floor = buff.readUInt32(line*10, true); | ||
ceil = buff.readUInt32(line*10+4, true); | ||
@@ -86,3 +86,3 @@ if(floor <= ip && ceil >= ip) { | ||
for(ii=0; ii<2; ii++) | ||
ip.push(buff.readUInt32(line*34+offset*16+ii*4, 'big')); | ||
ip.push(buff.readUInt32(line*34+offset*16+ii*4, true)); | ||
return ip; | ||
@@ -89,0 +89,0 @@ } |
{ | ||
"name" : "geoip-lite", | ||
"version" : "1.0.0", | ||
"version" : "1.0.1", | ||
"description" : "A light weight native JavaScript implementation of GeoIP API from MaxMind", | ||
"keywords" : ["geo", "geoip", "ip", "ipv4", "ipv6", "geolookup", "maxmind", "geolite"], | ||
"homepage" : "https://github.com/bluesmoon/node-geoip", | ||
@@ -6,0 +7,0 @@ "author" : "Philip Tellis <philip@bluesmoon.info> (http://bluesmoon.info/)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1793522