aboutsummaryrefslogtreecommitdiffstats
path: root/packages
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
parentb99fda3ba3070934b0d17d562d38a83fd4d5efd6 (diff)
downloadpfsense-packages-4900cb1b954a55d25a386d2655465151020948d2.tar.gz
pfsense-packages-4900cb1b954a55d25a386d2655465151020948d2.tar.bz2
pfsense-packages-4900cb1b954a55d25a386d2655465151020948d2.zip
squid suppress version
Diffstat (limited to 'packages')
-rw-r--r--packages/squid/squid.inc1
-rw-r--r--packages/squid/squid.xml6
-rw-r--r--packages/squid3/squid.inc2
-rw-r--r--packages/squid3/squid.xml6
4 files changed, 14 insertions, 1 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>
diff --git a/packages/squid3/squid.inc b/packages/squid3/squid.inc
index 2e646240..f2378a22 100644
--- a/packages/squid3/squid.inc
+++ b/packages/squid3/squid.inc
@@ -4,7 +4,6 @@
squid.inc
Copyright (C) 2006 Scott Ullrich
Copyright (C) 2006 Fernando Lemos
- Copyright (C) 2008 Martin Fuchs
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -561,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/squid3/squid.xml b/packages/squid3/squid.xml
index b05a2e62..50409a90 100644
--- a/packages/squid3/squid.xml
+++ b/packages/squid3/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>