]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] permit renaming of x-forwarded-for header
authorRoss West <westr@connection.ca>
Sun, 3 Aug 2008 08:51:45 +0000 (10:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Aug 2008 08:51:45 +0000 (10:51 +0200)
commitaf72a1d8ecb702aa2de6b5ed64494aa207ffa4ad
tree06d1c1c627c3cc7839b08ff9204f68613eb942e0
parentdd64f8d394330f04ccdf6081586c84feb5ff27ff
[MINOR] permit renaming of x-forwarded-for header

Because I needed it in my situation - here's a quick patch to
allow changing of the "x-forwarded-for" header by using a suboption to
"option forwardfor".

Suboption "header XYZ" will set the header from "x-forwarded-for" to "XYZ".

Default is still "x-forwarded-for" if the header value isn't defined.
Also the suboption 'except a.b.c.d/z' still works on the same line.

So it's now: option forwardfor [except a.b.c.d[/z]] [header XYZ]
doc/configuration.txt
include/common/defaults.h
include/types/proxy.h
src/cfgparse.c
src/proto_http.c