diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2012-05-14 12:27:41 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2012-05-14 12:27:41 +0000 |
| commit | 8e5dc474e5d848924c407c091199a97832bcd0ed (patch) | |
| tree | b0e6042776ab019037bae729ad894b5e78674764 /src/http/modules/ngx_http_realip_module.c | |
| parent | 4d5759e09841676dc745012f7e551e83e3b02fee (diff) | |
| download | nginx-8e5dc474e5d848924c407c091199a97832bcd0ed.tar.gz nginx-8e5dc474e5d848924c407c091199a97832bcd0ed.tar.bz2 | |
New function ngx_http_get_forwarded_addr() to look up real client address.
On input it takes an original address, string in the X-Forwarded-For format
and its length, list of trusted proxies, and a flag indicating to perform
the recursive search. On output it returns NGX_OK and the "deepest" valid
address in a chain, or NGX_DECLINED. It supports AF_INET and AF_INET6.
Additionally, original address and/or proxy may be specified as AF_UNIX.
Diffstat (limited to 'src/http/modules/ngx_http_realip_module.c')
0 files changed, 0 insertions, 0 deletions
