Skip to content

Commit 969de8a

Browse files
committed
Support DBIP-ASN-Lite database. Closes #69.
1 parent d8c5c3b commit 969de8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reader.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ func getDBType(reader *maxminddb.Reader) (databaseType, error) {
274274
switch reader.Metadata.DatabaseType {
275275
case "GeoIP2-Anonymous-IP":
276276
return isAnonymousIP, nil
277-
case "GeoLite2-ASN":
277+
case "DBIP-ASN-Lite (compat=GeoLite2-ASN)",
278+
"GeoLite2-ASN":
278279
return isASN, nil
279280
// We allow City lookups on Country for back compat
280281
case "DBIP-City-Lite",

0 commit comments

Comments
 (0)