bluesmoon/node-geoip — pull request #7 by jordanj77 (2012-04-27 01:37:45+00:00)
Title: !ip check in lookup function

Node's net.isIP() incorrectly returns 4 when passed null or undefined, so I've implemented a simple check to return null if the lookup function is passed null or undefined. Otherwise, a fatal error occurs when aton4() is subsequently passed null or undefined.