diff src/http/ngx_http_request.c @ 2992:2465ff3da161

geo module supports trusted proxies
author Igor Sysoev <igor@sysoev.ru>
date Wed, 22 Jul 2009 09:43:14 +0000
parents c96960a4b42c
children f592d466bbda
line wrap: on
line diff
--- a/src/http/ngx_http_request.c	Tue Jul 21 13:27:19 2009 +0000
+++ b/src/http/ngx_http_request.c	Wed Jul 22 09:43:14 2009 +0000
@@ -129,7 +129,7 @@
     { ngx_string("Keep-Alive"), offsetof(ngx_http_headers_in_t, keep_alive),
                  ngx_http_process_header_line },
 
-#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP)
+#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO)
     { ngx_string("X-Forwarded-For"),
                  offsetof(ngx_http_headers_in_t, x_forwarded_for),
                  ngx_http_process_header_line },