changeset 1113:f1d7cf0f68e3

optimize $http_x_forwarded_for
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Feb 2007 15:04:36 +0000
parents 3dcc3041b5bc
children 3f354952e91d
files src/http/ngx_http_variables.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c	Thu Feb 15 14:13:24 2007 +0000
+++ b/src/http/ngx_http_variables.c	Thu Feb 15 15:04:36 2007 +0000
@@ -101,7 +101,7 @@
       offsetof(ngx_http_request_t, headers_in.via), 0, 0 },
 #endif
 
-#if (NGX_HTTP_PROXY)
+#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP)
     { ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header,
       offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 },
 #endif