mirror of
https://github.com/mpolden/echoip.git
synced 2025-08-12 19:11:46 +02:00
Fix IsEmpty
This commit is contained in:
@@ -88,5 +88,5 @@ func (g *geoip) City(ip net.IP) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *geoip) IsEmpty() bool {
|
func (g *geoip) IsEmpty() bool {
|
||||||
return g.country != nil || g.city != nil
|
return g.country == nil && g.city == nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user