GeoIPv6 patch

Arnaud GRANAL serphen at
Sat Jun 11 14:10:24 MSD 2011

2011/6/11 Gregor Kališnik <gregor at>:
> Hi.

Hi Gregor,

> I've created a patch for nginx GeoIP module to also use the GeoIP IPv6
> version. The patch is attached.
> Currently it runs on and there are no appearant
> problems.

Sounds great,

Maybe should change
+ sprintf(temp_mapped, "::FFFF:%s", temp);
+ snprintf(temp_mapped, sizeof(temp_mapped), "::FFFF:%s", temp);

In case we get some forged variable as input (e.g. nginx used as
load-balancer for another nginx and not using REMOTE_ADDR but


More information about the nginx-devel mailing list