Skip to content

Commit f0a772c

Browse files
committed
Add support for Redacted US databases
Closes #134.
1 parent 1e6a666 commit f0a772c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 2.0.0-beta.3
22

3+
* Add support for `GeoIP-City-Redacted-US` and `GeoIP-Enterprise-Redacted-US`.
4+
Requested by Tom Anderson. GitHub #134.
35
* Upgrade `github.com/oschwald/maxminddb-golang/v2` to `v2.0.0-beta.7`.
46

57
# 2.0.0-beta.2

reader.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
140140
"DBIP-Country",
141141
"DBIP-Location (compat=City)",
142142
"GeoLite2-City",
143+
"GeoIP-City-Redacted-US",
143144
"GeoIP2-City",
144145
"GeoIP2-City-Africa",
145146
"GeoIP2-City-Asia-Pacific",
@@ -156,6 +157,7 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
156157
return isDomain, nil
157158
case "DBIP-ISP (compat=Enterprise)",
158159
"DBIP-Location-ISP (compat=Enterprise)",
160+
"GeoIP-Enterprise-Redacted-US",
159161
"GeoIP2-Enterprise":
160162
return isEnterprise | isCity | isCountry, nil
161163
case "GeoIP2-ISP", "GeoIP2-Precision-ISP":

0 commit comments

Comments
 (0)