fast-geoip
fast-geoip copied to clipboard
Incorrect location information for localhost: 127.0.0.1
For localhost IP address i.e 127.0.0.1, Japan comes as the Country. Response is given below:
{
"range": [
2130444288,
2147483648
],
"country": "JP",
"region": "",
"eu": "0",
"timezone": "Asia/Tokyo",
"city": "",
"ll": [
35.6897,
139.6895
],
"metro": 0,
"area": 500
}
lol
Should throw error or return null/undefined for local network ips 172, 192 etc
UPDATE: I looked at geoip-lite and it returns null in these cases.