diff options
author | doktornotor <notordoktor@gmail.com> | 2015-10-02 09:13:00 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-10-02 09:13:00 +0200 |
commit | a3977a6e39e96edf493d96ba93e38b893e659e4c (patch) | |
tree | daefe90a8e5430f5a1ec659ce3255aed57a9e205 /config/squid3 | |
parent | b7cfbd71b5b316b5a017d32bef8bf1fb4206d8d4 (diff) | |
download | pfsense-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-x | config/squid3/34/squid_reverse_general.xml | 7 |
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(); |