aboutsummaryrefslogtreecommitdiffstats
path: root/packages
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
parent5928f4e0f28510fac2cb15daeac3845188e994c4 (diff)
downloadpfsense-packages-08546cb82a24c51150c90ea055d973ff8568f643.tar.gz
pfsense-packages-08546cb82a24c51150c90ea055d973ff8568f643.tar.bz2
pfsense-packages-08546cb82a24c51150c90ea055d973ff8568f643.zip
add squid custom-options
Diffstat (limited to 'packages')
-rw-r--r--packages/squid/squid.inc9
-rw-r--r--packages/squid/squid.xml8
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(&amp;$pkg);