]> git.kaiwu.me - nginx.git/commit
geoip: trusted proxies support and partial IPv6 support.
authorRuslan Ermilov <ru@nginx.com>
Mon, 14 May 2012 14:00:17 +0000 (14:00 +0000)
committerRuslan Ermilov <ru@nginx.com>
Mon, 14 May 2012 14:00:17 +0000 (14:00 +0000)
commitd4ba06c31a09fd82a1a2b8046384b6c136df0aae
tree7eef928fb403889f2fc4e4a236e59b08b47a6f75
parent69521ddebf3562751ffd792b3eb4f356ae6d8ed6
geoip: trusted proxies support and partial IPv6 support.

The module now supports recursive search of client address through the
chain of trusted proxies (closes #100), in the same scope as the geo
module.  Proxies are listed by the "geoip_proxy" directive, recursive
search is enabled by the "geoip_proxy_recursive" directive.  IPv6 is
partially supported: proxies may be specified with IPv6 addresses.

Example:
    geoip_country .../GeoIP.dat;
    geoip_proxy 127.0.0.1;
    geoip_proxy ::1;
    geoip_proxy 10.0.0.0/8;
    geoip_proxy_recursive on;
src/http/modules/ngx_http_geoip_module.c