mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
optimize $http_x_forwarded_for
This commit is contained in:
parent
cf815023fc
commit
e8722b8b98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user