diff src/http/ngx_http_variables.c @ 4697:09187f9b0950

Fixed compile-time conditionals used to detect if X-Forwarded-For support is needed.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 21 Jun 2012 11:02:22 +0000
parents 631eff4a0188
children b7f6f097d95e
line wrap: on
line diff
--- 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_cor
       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