ngx_http_geoip2_module
ngx_http_geoip2_module copied to clipboard
Stale data after auto_reload on same IP lookup
After auto-reloading the MMDB, clear the cached 'database->address'. If not cleared, a subsequent lookup for the same IP would reuse the stale 'database->result' (containing pointers/offsets from the old DB), leading to incorrect data retrieval from the new DB instance.
https://github.com/leev/ngx_http_geoip2_module/issues/134