]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: make x-forwarded-for addition conditional
authorWilly Tarreau <w@1wt.eu>
Fri, 19 Aug 2011 20:57:24 +0000 (22:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Aug 2011 20:57:24 +0000 (22:57 +0200)
commit87cf51406cea6d6861c8c2a04ffa8fc6be998ce8
tree065397aea628fdfa91c14b73ca45b2928391d890
parent1ee51a658186b354bd1713f8102ca9bd446105db
[MEDIUM] http: make x-forwarded-for addition conditional

If "option forwardfor" has the "if-none" argument, then the header is
only added when the request did not already have one. This option has
security implications, and should not be set blindly.
doc/configuration.txt
include/types/proxy.h
src/cfgparse.c
src/proto_http.c