graylog2-server
graylog2-server copied to clipboard
Allow more db types for IPinfo mmdb files / reenable IPinfo in data adapter UI
IPinfo recently changed the type field in their metadata.
old
mmdbctl metadata 24/asn.mmdb
- Binary Format 2.0
- Database Type ipinfo asn.mmdb
new
mmdbctl metadata newest/asn.mmdb
- Binary Format 2.0
- Database Type ipinfo generic_asn_mmdb_v4.mmdb
This is likely because they changed something in their release process, because the db type is just their import filename:
https://github.com/ipinfo/mmdbctl/blob/master/lib/cmd_import.go#L269
Relax our db type match to support this.
Fixes https://github.com/Graylog2/graylog-plugin-enterprise/issues/6436