]> git.kaiwu.me - nginx.git/commit
realip: chains of trusted proxies and IPv6 support.
authorRuslan Ermilov <ru@nginx.com>
Mon, 14 May 2012 12:41:03 +0000 (12:41 +0000)
committerRuslan Ermilov <ru@nginx.com>
Mon, 14 May 2012 12:41:03 +0000 (12:41 +0000)
commit7627530b50adb81252f7924d3751e00f65601874
treefa16b54d128e2eb9b20525addf0dcf02d9905a48
parent8e5dc474e5d848924c407c091199a97832bcd0ed
realip: chains of trusted proxies and IPv6 support.

The module now supports recursive search of client address through
the chain of trusted proxies, controlled by the "real_ip_recursive"
directive (closes #2).  It also gets full IPv6 support (closes #44)
and canonical value of the $client_addr variable on address change.

Example:
    real_ip_header X-Forwarded-For;
    set_real_ip_from 127.0.0.0/8;
    set_real_ip_from ::1;
    set_real_ip_from unix:;
    real_ip_recursive on;
src/http/modules/ngx_http_realip_module.c