fast-geoip icon indicating copy to clipboard operation
fast-geoip copied to clipboard

Incorrect location information for localhost: 127.0.0.1

Open sanmak opened this issue 3 years ago • 2 comments

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
}

sanmak avatar Jun 30 '21 13:06 sanmak

lol

steevhise avatar Feb 07 '22 22:02 steevhise

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.

rathod-sahaab avatar Aug 18 '22 01:08 rathod-sahaab