diff options
author | Ruslan Ermilov <ru@nginx.com> | 2013-02-27 13:29:50 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2013-02-27 13:29:50 +0000 |
commit | 67a68720b7f08542c891d7b9ef08f07e3543b0e4 (patch) | |
tree | b61423ee7b49a7280f87d66606c96785681d71ad /src/http/ngx_http_core_module.h | |
parent | 40ea120b34342a3aa80f27378c7f05360b2da7a0 (diff) | |
download | nginx-67a68720b7f08542c891d7b9ef08f07e3543b0e4.tar.gz nginx-67a68720b7f08542c891d7b9ef08f07e3543b0e4.zip |
Correctly handle multiple X-Forwarded-For headers (ticket #106).
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index ff1c2dfa0..9ea73fa8e 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -516,7 +516,8 @@ ngx_int_t ngx_http_set_disable_symlinks(ngx_http_request_t *r, ngx_http_core_loc_conf_t *clcf, ngx_str_t *path, ngx_open_file_info_t *of); ngx_int_t ngx_http_get_forwarded_addr(ngx_http_request_t *r, ngx_addr_t *addr, - u_char *xff, size_t xfflen, ngx_array_t *proxies, int recursive); + ngx_array_t *headers, ngx_str_t *value, ngx_array_t *proxies, + int recursive); extern ngx_module_t ngx_http_core_module; |