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
|
||||
longitude = loc.Longitude
|
||||
} else {
|
||||
// For debugging, adding the iso to the country name.
|
||||
countryName = countryName + " (" + iso + ")"
|
||||
if iso != "" {
|
||||
// For debugging, adding the iso to the country name.
|
||||
countryName = countryName + " (" + iso + ")"
|
||||
}
|
||||
}
|
||||
}
|
||||
gh := geohash.EncodeAuto(latitude, longitude)
|
||||
|
|
|
|||
Loading…
Reference in a new issue