From 19e16e574a95061bfd180005d1ecaa1fcbf7d2e0 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 17 Jul 2007 21:43:19 +0000 Subject: Add option to disable VIA-header in squid-package --- packages/squid/squid.inc | 1 + packages/squid/squid.xml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 9f3790e6..147daf16 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -504,6 +504,7 @@ EOD; $valid_acls[] = 'localnet'; } if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; + if ($settings['disable_via']) $conf .= "via off\n"; return $conf; } diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml index ee5c4924..d7ed913e 100644 --- a/packages/squid/squid.xml +++ b/packages/squid/squid.xml @@ -185,6 +185,12 @@ If not set, Squid will include your system's IP address or name in the HTTP requests it forwards. By default it looks like this: X-Forwarded-For: 192.1.2.3. If you enable this, it will appear as X-Forwarded-For: unknown checkbox + + Disable VIA + disable_via + If not set, Squid will include a Via header in requests and replies. + checkbox + squid_resync(); -- cgit v1.2.3