Replace None with ?? in geolocation
This commit is contained in:
parent
6810202f3f
commit
5535a88fb1
@ -28,5 +28,8 @@ func (s *HoneypotServer) LookupCountry(ip net.IP) string {
|
|||||||
s.Logger.Warnw("Error doing geoip lookup", "error", err)
|
s.Logger.Warnw("Error doing geoip lookup", "error", err)
|
||||||
return "??"
|
return "??"
|
||||||
}
|
}
|
||||||
|
if record.Country.ISOCode == "None" {
|
||||||
|
return "??"
|
||||||
|
}
|
||||||
return record.Country.ISOCode
|
return record.Country.ISOCode
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version = "v0.1.10"
|
var Version = "v0.1.11"
|
||||||
var Build string
|
var Build string
|
||||||
|
|
||||||
func FullVersion() string {
|
func FullVersion() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user