aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid/squid.inc
diff options
context:
space:
mode:
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";