]> git.kaiwu.me - nginx.git/commitdiff
optimize $http_x_forwarded_for
authorIgor Sysoev <igor@sysoev.ru>
Thu, 15 Feb 2007 15:04:36 +0000 (15:04 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 15 Feb 2007 15:04:36 +0000 (15:04 +0000)
src/http/ngx_http_variables.c

index ac4a4a2f8c9897b1411f2354c32c1aa80a5ecc01..3ea0f96aee8e1483dac4f3835519bf2e6d602166 100644 (file)
@@ -101,7 +101,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)
+#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