diff src/http/ngx_http_busy_lock.h @ 4623:ed3d0cc6de5a

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.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 14 May 2012 12:27:41 +0000
parents d620f497c50f
children
line wrap: on
line diff