From a29654f0228182ce5d70e21e90bfb19c23951a48 Mon Sep 17 00:00:00 2001 From: elfranne Date: Wed, 16 Jul 2025 22:55:30 +0200 Subject: [PATCH 1/2] add Geoopen --- reader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reader.go b/reader.go index b9e7854..e6fef85 100644 --- a/reader.go +++ b/reader.go @@ -132,6 +132,7 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) { case "GeoIP2-Anonymous-IP": return isAnonymousIP, nil case "DBIP-ASN-Lite (compat=GeoLite2-ASN)", + "GeoOpen-Country-ASN", "GeoLite2-ASN": return isASN, nil // We allow City lookups on Country for back compat @@ -139,6 +140,7 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) { "DBIP-Country-Lite", "DBIP-Country", "DBIP-Location (compat=City)", + "GeoOpen-Country", "GeoLite2-City", "GeoIP-City-Redacted-US", "GeoIP2-City", From 958961190512ee315a6ef3197356f032f1ff4ea2 Mon Sep 17 00:00:00 2001 From: Elfranne <861038+elfranne@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:18:49 +0200 Subject: [PATCH 2/2] remove asn --- reader.go | 1 - 1 file changed, 1 deletion(-) diff --git a/reader.go b/reader.go index e6fef85..356c0d8 100644 --- a/reader.go +++ b/reader.go @@ -132,7 +132,6 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) { case "GeoIP2-Anonymous-IP": return isAnonymousIP, nil case "DBIP-ASN-Lite (compat=GeoLite2-ASN)", - "GeoOpen-Country-ASN", "GeoLite2-ASN": return isASN, nil // We allow City lookups on Country for back compat