aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2008-08-18 22:34:42 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2008-08-18 22:34:42 +0000
commit4900cb1b954a55d25a386d2655465151020948d2 (patch)
tree5d180a57c0b1a98f319256c23e4dd74d2ab9d9cd /packages/squid
parentb99fda3ba3070934b0d17d562d38a83fd4d5efd6 (diff)
downloadpfsense-packages-4900cb1b954a55d25a386d2655465151020948d2.tar.gz
pfsense-packages-4900cb1b954a55d25a386d2655465151020948d2.tar.bz2
pfsense-packages-4900cb1b954a55d25a386d2655465151020948d2.zip
squid suppress version
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 2c62b5f3..75486a9f 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -560,6 +560,7 @@ EOD;
}
if ($settings['disable_xforward']) $conf .= "forwarded_for off\n";
if ($settings['disable_via']) $conf .= "via off\n";
+ if ($settings['disable_squidversion']) $conf .= "httpd_suppress_version_string on\n";
$conf .= "uri_whitespace {$settings['uri_whitespace']}\n";
if(!empty($settings['dns_nameservers'])) {
diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml
index b05a2e62..50409a90 100644
--- a/packages/squid/squid.xml
+++ b/packages/squid/squid.xml
@@ -278,6 +278,12 @@
<size>60</size>
</field>
<field>
+ <fielddescr>Suppress Squid Version</fielddescr>
+ <fieldname>disable_squidversion</fieldname>
+ <description>If set, suppress Squid version string info in HTTP headers and HTML error pages.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
<fielddescr>Custom Options</fielddescr>
<fieldname>custom_options</fieldname>
<description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the configuration. They need to be squid.conf native options, otherwise squid will NOT work.</description>