-
Notifications
You must be signed in to change notification settings - Fork 0
RobWC/node-geoip-to-mongo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Query: db.iptocn.find({numberStart: {$lte: IPNUMTOCHECK}}).sort({numberStart: -1}).limit(1) To convert to number: var spIP = 'IPADDR'.split('.') num = (16777216 * spIP[0]) + (65536*spIP[1]) + (256* spIP[2]) +(spIP[3])
About
Tool to insert the GeoIP DB into MongoDB
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published