GeoIP module breaks for IPv4 when IPv6 is enabled

Matthias Saou thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Sat May 14 01:59:32 MSD 2011


Igor Sysoev <igor at sysoev.ru> 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!)

Matthias



More information about the nginx-devel mailing list