From a4dde88ed2d333d6f2cf74eb6a6f119772e1d3b9 Mon Sep 17 00:00:00 2001 From: markendev Date: Fri, 10 Mar 2017 10:08:00 +0200 Subject: [PATCH] Added GeoIP2-City-Europe type --- reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reader.go b/reader.go index 60179c1..639976f 100644 --- a/reader.go +++ b/reader.go @@ -195,8 +195,8 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) { case "GeoIP2-Anonymous-IP": return isAnonymousIP, nil // We allow City lookups on Country for back compat - case "GeoLite2-City", "GeoIP2-City", "GeoIP2-Precision-City", "GeoLite2-Country", - "GeoIP2-Country": + case "GeoLite2-City", "GeoIP2-City", "GeoIP2-City-Europe", "GeoIP2-Precision-City", + "GeoLite2-Country", "GeoIP2-Country": return isCity | isCountry, nil case "GeoIP2-Connection-Type": return isConnectionType, nil