Replace None with ?? in geolocation
This commit is contained in:
@@ -28,5 +28,8 @@ func (s *HoneypotServer) LookupCountry(ip net.IP) string {
|
||||
s.Logger.Warnw("Error doing geoip lookup", "error", err)
|
||||
return "??"
|
||||
}
|
||||
if record.Country.ISOCode == "None" {
|
||||
return "??"
|
||||
}
|
||||
return record.Country.ISOCode
|
||||
}
|
||||
|
Reference in New Issue
Block a user