aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid/squid.inc
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2007-10-23 22:46:32 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2007-10-23 22:46:32 +0000
commit08546cb82a24c51150c90ea055d973ff8568f643 (patch)
tree6b8c6f0681b2da32ad291042a364a31d6c15f38b /packages/squid/squid.inc
parent5928f4e0f28510fac2cb15daeac3845188e994c4 (diff)
downloadpfsense-packages-08546cb82a24c51150c90ea055d973ff8568f643.tar.gz
pfsense-packages-08546cb82a24c51150c90ea055d973ff8568f643.tar.bz2
pfsense-packages-08546cb82a24c51150c90ea055d973ff8568f643.zip
add squid custom-options
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r--packages/squid/squid.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index e586ba6c..5b2a9ca1 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -830,6 +830,15 @@ EOD;
$conf .= "http_access allow password $acl\n";
}
+ $settings = $config['installedpackages']['squid']['config'][0];
+ if(!empty($settings['custom_options'])) {
+ $custopts = explode(";", ($settings['custom_options']));
+ $conf .= "# Custom options\n";
+ foreach ($custopts as $custopt) {
+ $conf .= $custopt."\n";
+ }
+ }
+
$conf .= "# Default block all to be sure\n";
$conf .= "http_access deny all\n";