No description
Find a file
Maxim Dounin 8cdec7c277 Realip: fixed duplicate processing on redirects (ticket #1098).
Duplicate processing was possible if the address set by realip was
listed in set_realip_from, and there was an internal redirect so module
context was cleared.  This resulted in exactly the same address being set,
so this wasn't a problem before the $realip_remote_addr variable was
introduced, though now results in incorrect $realip_remote_addr being
picked.

Fix is to use ngx_http_realip_get_module_ctx() to look up module context
even if it was cleared.  Additionally, the order of checks was switched to
check the configuration first as it looks more effective.
2016-10-06 23:16:05 +03:00
auto Configure: removed the --with-ipv6 option. 2016-10-04 16:38:14 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: unicode2nginx compatibility with recent Perl versions. 2016-08-24 15:53:17 +03:00
docs nginx-1.11.4-RELEASE 2016-09-13 18:39:23 +03:00
misc Configure: removed the --with-ipv6 option. 2016-10-04 16:38:14 +03:00
src Realip: fixed duplicate processing on redirects (ticket #1098). 2016-10-06 23:16:05 +03:00