diff options
Diffstat (limited to 'packages/squid')
-rw-r--r-- | packages/squid/squid.inc | 9 | ||||
-rw-r--r-- | packages/squid/squid.xml | 8 |
2 files changed, 17 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"; diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml index 0370aff2..b373cebc 100644 --- a/packages/squid/squid.xml +++ b/packages/squid/squid.xml @@ -264,6 +264,14 @@ </option> </options> </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> + <type>textarea</type> + <cols>65</cols> + <rows>5</rows> + </field> </fields> <custom_php_command_before_form> squid_before_form_general(&$pkg); |