report unknow location for local ip
This commit is contained in:
parent
c50302622e
commit
374c2b74ad
1 changed files with 4 additions and 2 deletions
6
geoip.go
6
geoip.go
|
|
@ -133,8 +133,10 @@ func geohashAndLocationFromMaxMindDb(address string) (string, string, string, er
|
||||||
latitude = loc.Latitude
|
latitude = loc.Latitude
|
||||||
longitude = loc.Longitude
|
longitude = loc.Longitude
|
||||||
} else {
|
} else {
|
||||||
// For debugging, adding the iso to the country name.
|
if iso != "" {
|
||||||
countryName = countryName + " (" + iso + ")"
|
// For debugging, adding the iso to the country name.
|
||||||
|
countryName = countryName + " (" + iso + ")"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gh := geohash.EncodeAuto(latitude, longitude)
|
gh := geohash.EncodeAuto(latitude, longitude)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue