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

Reload geoip database periodically #16

Closed
abh opened this issue Oct 9, 2012 · 4 comments
Closed

Reload geoip database periodically #16

abh opened this issue Oct 9, 2012 · 4 comments
Milestone

Comments

@abh
Copy link
Owner

abh commented Oct 9, 2012

Once a day or so we should reload the geoip database in case it's changed.

@anuaimi
Copy link

anuaimi commented Jan 8, 2014

MaxMind updates their geo database monthly so reloading would be a nice feature to have.

@abh abh added this to the 2.6 milestone Oct 20, 2014
@abligh
Copy link
Contributor

abligh commented Sep 1, 2015

In order to reload it, you first have to download the new version. You may or may not be interested in:
https://github.com/abligh/geoipupdate
which is a pure go-lang apache-licensed geoip update program. Feel free to incorporate it if useful.

@tydavis
Copy link
Contributor

tydavis commented Jan 19, 2022

I think this can be closed?

@abh
Copy link
Owner Author

abh commented Jan 20, 2022

yes, thanks @tydavis!

Closed via #128

@abh abh closed this as completed Jan 20, 2022
bufrr pushed a commit to bufrr/geodns that referenced this issue Feb 1, 2023
Add goroutine to watch file modification time each minute. Lock and
update the files independently if the modification time is newer than
the last time it was loaded.

Also ancillary fixes for type signatures, and formatting test files.

Fixes abh#116, abh#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants