diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-06-21 11:02:22 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-06-21 11:02:22 +0000 |
commit | 42444811b9281b1946a7a6f6d2f0b3ab2a98c269 (patch) | |
tree | 512552aca6ad9646f9aa9537e595aa55e2c75ac2 /src/http/ngx_http_variables.c | |
parent | 992a4d11daadaa440ea4bc879c53aadef5721c63 (diff) | |
download | nginx-42444811b9281b1946a7a6f6d2f0b3ab2a98c269.tar.gz nginx-42444811b9281b1946a7a6f6d2f0b3ab2a98c269.zip |
Fixed compile-time conditionals used to detect if X-Forwarded-For support
is needed.
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 76b292553..f34a6d9a3 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -134,7 +134,7 @@ static ngx_http_variable_t ngx_http_core_variables[] = { offsetof(ngx_http_request_t, headers_in.via), 0, 0 }, #endif -#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP) +#if (NGX_HTTP_X_FORWARDED_FOR) { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header, offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 }, #endif |