Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace geoip database support with maxminddb #1828

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

ddpbsd
Copy link
Member

@ddpbsd ddpbsd commented Jan 21, 2020

The former geoip databases are no longer maintained, but libmaxminddb is. So switch to this.

Currently the output is limited to the country iso code. I haven't tried very hard to get state/province information, but this can be added if it's desired (I don't see a lot of use in it personally, but I'm not opposed to adding it).

I've only tested with the GeoLite2-Country.mmdb database.
The <geoipdb> configuration setting has been re-used for this.
If the database file cannot be opened, an error is logged. Should it exit as well?

@ddpbsd ddpbsd added this to the v3.7 milestone Feb 5, 2020
@sempervictus
Copy link

They added uniquely identified downloads @ end of last year, any concern with tracking/privacy?

@ddpbsd
Copy link
Member Author

ddpbsd commented Mar 5, 2020

@sempervictus Not from me. It's up to the user to consider that.
https://db-ip.com/db/lite.php also has compatible databases (I haven't looked at them yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants