diff src/http/ngx_http_request.h @ 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 cb1d3b48a848
children 5b93a9ac60ed
line wrap: on
line diff
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -192,7 +192,7 @@ typedef struct {
 
     ngx_table_elt_t                  *keep_alive;
 
-#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO)
+#if (NGX_HTTP_X_FORWARDED_FOR)
     ngx_table_elt_t                  *x_forwarded_for;
 #endif