Skip to content

Commit 77feac3

Browse files
committed
Add support for Redacted US databases
Closes #134.
1 parent 0972ffa commit 77feac3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reader.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
290290
"DBIP-Country",
291291
"DBIP-Location (compat=City)",
292292
"GeoLite2-City",
293+
"GeoIP-City-Redacted-US",
293294
"GeoIP2-City",
294295
"GeoIP2-City-Africa",
295296
"GeoIP2-City-Asia-Pacific",
@@ -306,6 +307,7 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
306307
return isDomain, nil
307308
case "DBIP-ISP (compat=Enterprise)",
308309
"DBIP-Location-ISP (compat=Enterprise)",
310+
"GeoIP-Enterprise-Redacted-US",
309311
"GeoIP2-Enterprise":
310312
return isEnterprise | isCity | isCountry, nil
311313
case "GeoIP2-ISP", "GeoIP2-Precision-ISP":

0 commit comments

Comments
 (0)