diff options
Diffstat (limited to 'packages/squid3')
-rw-r--r-- | packages/squid3/squid.inc | 2 | ||||
-rw-r--r-- | packages/squid3/squid.xml | 6 |
2 files changed, 7 insertions, 1 deletions
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> |