diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-02-15 15:04:36 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-02-15 15:04:36 +0000 |
commit | e8722b8b984117151317c034012f1c08a5213a61 (patch) | |
tree | ae499d9425c2e1b8e9f85330196a8f5ccb2ec175 /src | |
parent | cf815023fcc92ae3cd810bc7516d5ad9aebb6acc (diff) | |
download | nginx-e8722b8b984117151317c034012f1c08a5213a61.tar.gz nginx-e8722b8b984117151317c034012f1c08a5213a61.zip |
optimize $http_x_forwarded_for
Diffstat (limited to 'src')
-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 ac4a4a2f8..3ea0f96ae 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -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 |