]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http.cc
Bug 2223: Feature: flexible handling of x-forwarded-for
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 10 May 2008 08:34:03 +0000 (20:34 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 10 May 2008 08:34:03 +0000 (20:34 +1200)
commit67c06f0d42ffa2b3b71082e0694460efa22a37a0
tree647c06192a6db5de35d6c5ce0d41d7cf6f839784
parente85eb4e15409e1047367ecc7d1092729a2dc563a
Bug 2223: Feature: flexible handling of x-forwarded-for

This patch adds three settings for the 'forwarded_for' option in squid.conf:

If set to "transparent", Squid will not alter the X-Forwarded-For header in any
way.

If set to "delete", Squid will delete the entire X-Forwarded-For header.

If set to "truncate", Squid will remove all existing X-Forwarded-For entries,
and place itself as the sole entry.

The old options 'on' and 'off' have been left unaltered.
src/AuthUser.cci
src/cf.data.pre
src/globals.h
src/http.cc