diff options
| author | 2012-07-07 16:01:48 +0000 | |
|---|---|---|
| committer | 2012-07-07 16:01:48 +0000 | |
| commit | 804b71a0609acb5f92f9dcddca7d9200130484d9 (patch) | |
| tree | f00c8fb2d42c998ec27b6b9b0c899f878c118d15 /usr.sbin/nginx/src/http/ngx_http_request.h | |
| parent | add /var/www/cache for nginx to store some data (diff) | |
| download | wireguard-openbsd-804b71a0609acb5f92f9dcddca7d9200130484d9.tar.xz wireguard-openbsd-804b71a0609acb5f92f9dcddca7d9200130484d9.zip | |
update to 1.2.2 and start using /var/www/cache instead of /var/www/tmp
Diffstat (limited to 'usr.sbin/nginx/src/http/ngx_http_request.h')
| -rw-r--r-- | usr.sbin/nginx/src/http/ngx_http_request.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/nginx/src/http/ngx_http_request.h b/usr.sbin/nginx/src/http/ngx_http_request.h index 70ca6097efa..c2651a86fd1 100644 --- a/usr.sbin/nginx/src/http/ngx_http_request.h +++ b/usr.sbin/nginx/src/http/ngx_http_request.h @@ -137,6 +137,13 @@ #define NGX_HTTP_COPY_BUFFERED 0x04 +#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO) +#ifndef NGX_HTTP_X_FORWARDED_FOR +#define NGX_HTTP_X_FORWARDED_FOR 1 +#endif +#endif + + typedef enum { NGX_HTTP_INITING_REQUEST_STATE = 0, NGX_HTTP_READING_REQUEST_STATE, @@ -192,7 +199,7 @@ typedef struct { ngx_table_elt_t *keep_alive; -#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP || NGX_HTTP_GEO) +#if (NGX_HTTP_X_FORWARDED_FOR) ngx_table_elt_t *x_forwarded_for; #endif |
