aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/34
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-14 16:11:44 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-14 16:11:44 +0200
commita7f8506c32dae34ad0fd39e7989eb0c8ba25370b (patch)
treeddea0f62978c4ee51a630be0752c87ccb1751a3c /config/squid3/34
parent45aded2d2c8e6c947d40706525abf930baa40c34 (diff)
downloadpfsense-packages-a7f8506c32dae34ad0fd39e7989eb0c8ba25370b.tar.gz
pfsense-packages-a7f8506c32dae34ad0fd39e7989eb0c8ba25370b.tar.bz2
pfsense-packages-a7f8506c32dae34ad0fd39e7989eb0c8ba25370b.zip
Put validation to 'Throttle Only Specific Extensions' to avoid an empty ACL
Diffstat (limited to 'config/squid3/34')
-rwxr-xr-xconfig/squid3/34/squid.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index cde74ebc..d8598141 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -974,6 +974,14 @@ function squid_validate_traffic($post, &$input_errors) {
$input_errors[] = "'Finish when remaining %' must contain valid percentage (1-100).";
}
}
+
+ if ($post['throttle_specific'] == "on") {
+ $others = trim($post['throttle_others']);
+ if ($post['throttle_binaries'] == "" && $post['throttle_cdimages'] == "" && $post['throttle_multimedia'] == "" && $others == "") {
+ $input_errors[] = "'Throttle Only Specific Extensions' enabled but no extensions specified. Select some options under 'Squid Transfer Extension Settings' or disable this option.";
+ }
+ }
+
}
/* Proxy Server: Authentication input validation */