kuno / GeoIP

GeoIP binding for nodejs(>=0.10) and iojs
GNU Lesser General Public License v2.1
414 stars 129 forks source link

The module 'net' does not have an isIP method. Tested on node v0.2.3 #1

Closed shripadk closed 13 years ago

shripadk commented 13 years ago

geoip.Country.code_by_addr(data, '8.8.8.8'); TypeError: Object # has no method 'isIP' at /usr/local/lib/node/.npm/geoip/0.1.1/package/lib/utils.js:41:22 at Object.record_by_addr (/usr/local/lib/node/.npm/geoip/0.1.1/package/city.js:171:17) at Object.code_by_addr (/usr/local/lib/node/.npm/geoip/0.1.1/package/country.js:56:23) at [object Context]:1:15 at Interface. (repl:96:19) at Interface.emit (events:27:15) at Interface._ttyWrite (readline:295:12) at Interface.write (readline:132:30) at Stream. (repl:77:9) at Stream.emit (events:27:15)

kuno commented 13 years ago

sorry for the inconvenience, I just released a new version 0.1.2 to fix this problem. Please note that geoip now ONLY supports IPv4, not IPv6 yet. It was passed the test on node 0.2.3 on my linux machine. you can also update to 0.1.2 by using npm, npm update geoip.

Thanks

kuno

kuno commented 13 years ago

Emergent Update: Warning: Due to the Asynchronous programming problome, Any version that below the 0.1.3 dosen't work in any real script. I highly recommond that every user should update to at least v0.1.3! also npm update works