Conflicts: Changes README mod_geoip.c
XFF strings like "10.6.1.35,10.6.21.241,10.6.1.45,22.214.171.124" were causing segmentation faults. Fixed: - match was allocated memory with a wrong size, before the calculation of its length. If 3 IP followed with the second being shorter than the third, seg faults happened. - as the trailing 0 is added after strncpy, we must add 1 byte to the allocation - str was never freed
This reverts commit 7e5f37a.
minor refactor to skip now redundant comma find & trim
…und in the proxy headers. Geolocation would not have worked anyway and we might still find some useful location in the remote_ip. This is needed for example when your server can be accessed directly in addition to behind CDNs/proxies.
… ( Boris Zentner )
…n database. Both are only set if a region or country was found. Previously a empty string was assigned to both ( Boris Zentner )
…ME only if the country is known. ( Boris Zentner )
…n. Exported as env, notes or both as usual ( Jason Caldwell )