GeoIP module breaks for IPv4 when IPv6 is enabled

Matthias Saou thias at
Sat May 14 01:59:32 MSD 2011

Igor Sysoev <igor at> wrote:

> > The attached patch should fix the issue.
> The updated patch.

I've quickly backported the changes to 1.0.2, and it fixes the problem
for me : All of the $geoip_country_* variables I need are back, and I
can still see the ::ffff: address prefix for IPv4 connections in PHP's
$_SERVER["*_ADDR"] (confirming I still have dual stack enabled).

Thanks a lot, Igor! (both for this quick patch, and for nginx itself!)


More information about the nginx-devel mailing list