diff --git a/honeypot/geolocate.go b/honeypot/geolocate.go index 18969ff..d5baa60 100644 --- a/honeypot/geolocate.go +++ b/honeypot/geolocate.go @@ -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 } diff --git a/version.go b/version.go index e309def..4658981 100644 --- a/version.go +++ b/version.go @@ -5,7 +5,7 @@ import ( "runtime" ) -var Version = "v0.1.10" +var Version = "v0.1.11" var Build string func FullVersion() string {