aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2007-07-17 21:43:19 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2007-07-17 21:43:19 +0000
commit19e16e574a95061bfd180005d1ecaa1fcbf7d2e0 (patch)
tree484c68b6bc735375ff8ac301be1bfb0ab01898b3 /packages/squid
parentcf931fe9afa0663dae156abc0e81749984463492 (diff)
downloadpfsense-packages-19e16e574a95061bfd180005d1ecaa1fcbf7d2e0.tar.gz
pfsense-packages-19e16e574a95061bfd180005d1ecaa1fcbf7d2e0.tar.bz2
pfsense-packages-19e16e574a95061bfd180005d1ecaa1fcbf7d2e0.zip
Add option to disable VIA-header in squid-package
Diffstat (limited to 'packages/squid')
-rw-r--r--packages/squid/squid.inc1
-rw-r--r--packages/squid/squid.xml6
2 files changed, 7 insertions, 0 deletions
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 @@
<description>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</description>
<type>checkbox</type>
</field>
+ <field>
+ <fielddescr>Disable VIA</fielddescr>
+ <fieldname>disable_via</fieldname>
+ <description>If not set, Squid will include a Via header in requests and replies.</description>
+ <type>checkbox</type>
+ </field>
</fields>
<custom_add_php_command>
squid_resync();