oschwald / geoip2-golang

Unofficial MaxMind GeoIP2 Reader for Go
ISC License
1.86k stars 191 forks source link

DP-IP & GeoIP2 #112

Closed MaurUppi closed 8 months ago

MaurUppi commented 8 months ago

I knew your reader.go supported both dbip & MaxMind database format. but would you help me understand the method of recognition by the filename OR read the database schema to determine the format?

thx a lot!

oschwald commented 8 months ago

See this function. It checks database_type in the metadata.