Skip to content

Commit

Permalink
Support DBIP-ASN-Lite database. Closes #69.
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Feb 20, 2021
1 parent d8c5c3b commit 969de8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
switch reader.Metadata.DatabaseType {
case "GeoIP2-Anonymous-IP":
return isAnonymousIP, nil
case "GeoLite2-ASN":
case "DBIP-ASN-Lite (compat=GeoLite2-ASN)",
"GeoLite2-ASN":
return isASN, nil
// We allow City lookups on Country for back compat
case "DBIP-City-Lite",
Expand Down

0 comments on commit 969de8a

Please sign in to comment.