Migration: go 1.17
This commit is contained in:
@ -20,6 +20,10 @@ func (g *GEOIP) Match(metadata *C.Metadata) bool {
|
||||
if ip == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
if g.country == "LAN" {
|
||||
return ip.IsPrivate()
|
||||
}
|
||||
record, _ := mmdb.Instance().Country(ip)
|
||||
return record.Country.IsoCode == g.country
|
||||
}
|
||||
|
Reference in New Issue
Block a user