jrconlin/geoip_server

Code doesn't seem to support use of the paid GeoIPCity database

Closed this issue · 3 comments

Might be a useful thing to allow as it provides better accuracy and more frequent updates.

Since I've not gotten the specs for the paid GeoIPCity database, I'm not able to write the code to meet them. Does the paid data use a different C API than the free data does?

Nope, the API is identical. The only difference is the default name of the database which would be GeoIPCity.dat. My issue was prompted by the code I saw that tries to detect free vs lite by naming convention, and I wasn't sure how the service would react to being pointed at a file that didn't have an expected suffix.

Added more detailed settings info to the settings.py file. This will allow you to specify what data files to use, although things will default to the "free" version.