diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-01-07 18:45:55 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-07 18:45:55 +0000 |
| commit | e7b5df16ba28e2b776c1ddf0ff95e5a2f4a72595 (patch) | |
| tree | 1a24633f6bb81b1b4b2c00fa1dd9854ab0ead04b | |
| parent | 684f955135b903a82ae57ba837999fd1eb87b905 (diff) | |
| download | nginx-e7b5df16ba28e2b776c1ddf0ff95e5a2f4a72595.tar.gz nginx-e7b5df16ba28e2b776c1ddf0ff95e5a2f4a72595.tar.bz2 | |
ngx_http_realip_module must return NGX_DECLINED
| -rw-r--r-- | src/http/modules/ngx_http_realip_module.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_realip_module.c b/src/http/modules/ngx_http_realip_module.c index df5859880..91ba695fd 100644 --- a/src/http/modules/ngx_http_realip_module.c +++ b/src/http/modules/ngx_http_realip_module.c @@ -103,18 +103,18 @@ ngx_http_realip_handler(ngx_http_request_t *r) ngx_http_realip_loc_conf_t *rlcf; if (r->realip_set) { - return NGX_OK; + return NGX_DECLINED; } rlcf = ngx_http_get_module_loc_conf(r, ngx_http_realip_module); if (rlcf->from == NULL) { - return NGX_OK; + return NGX_DECLINED; } if (rlcf->xfwd == 0) { if (r->headers_in.x_real_ip == NULL) { - return NGX_OK; + return NGX_DECLINED; } len = r->headers_in.x_real_ip->value.len; @@ -122,7 +122,7 @@ ngx_http_realip_handler(ngx_http_request_t *r) } else { if (r->headers_in.x_forwarded_for == NULL) { - return NGX_OK; + return NGX_DECLINED; } len = r->headers_in.x_forwarded_for->value.len; @@ -158,11 +158,11 @@ ngx_http_realip_handler(ngx_http_request_t *r) r->realip_set = 1; - return NGX_OK; + return NGX_DECLINED; } } - return NGX_OK; + return NGX_DECLINED; } |
