aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-02 09:13:00 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-02 09:13:00 +0200
commita3977a6e39e96edf493d96ba93e38b893e659e4c (patch)
treedaefe90a8e5430f5a1ec659ce3255aed57a9e205 /config/squid3
parentb7cfbd71b5b316b5a017d32bef8bf1fb4206d8d4 (diff)
downloadpfsense-packages-a3977a6e39e96edf493d96ba93e38b893e659e4c.tar.gz
pfsense-packages-a3977a6e39e96edf493d96ba93e38b893e659e4c.tar.bz2
pfsense-packages-a3977a6e39e96edf493d96ba93e38b893e659e4c.zip
Tell reverse proxy users to enable Squid if needed
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid_reverse_general.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/squid3/34/squid_reverse_general.xml b/config/squid3/34/squid_reverse_general.xml
index 19c504f1..90babcd0 100755
--- a/config/squid3/34/squid_reverse_general.xml
+++ b/config/squid3/34/squid_reverse_general.xml
@@ -42,7 +42,7 @@
]]>
</copyright>
<name>squidreversegeneral</name>
- <version>0.3.5</version>
+ <version>0.3.8</version>
<title>Reverse Proxy Server: General</title>
<include_file>/usr/local/pkg/squid.inc</include_file>
<tabs>
@@ -303,7 +303,12 @@
</field>
</fields>
<custom_php_validation_command>
+ <![CDATA[
+ if (!empty($_POST) && !squid_enabled()) {
+ $input_errors[] = "Squid is disabled. You must enable Squid proxy under Services - Squid Proxy Server - General.";
+ }
squid_validate_reverse($_POST, $input_errors);
+ ]]>
</custom_php_validation_command>
<custom_php_resync_config_command>
squid_resync();