diff src/http/ngx_http_core_module.h @ 5084:f7fe817c92a2

Correctly handle multiple X-Forwarded-For headers (ticket #106).
author Ruslan Ermilov <ru@nginx.com>
date Wed, 27 Feb 2013 13:29:50 +0000
parents bdcdbdf35b52
children 7f1cbcc71327
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.h	Wed Feb 27 13:22:20 2013 +0000
+++ b/src/http/ngx_http_core_module.h	Wed Feb 27 13:29:50 2013 +0000
@@ -516,7 +516,8 @@
     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;