aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid/squid.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-02 11:08:01 -0400
committerjim-p <jimp@pfsense.org>2011-05-02 11:10:23 -0400
commitfd27296d65a33e68f89846831ba45178df3a56fb (patch)
treeaefecc825bb1a46d087437e34c4c46d01b5e1b4f /config/squid/squid.inc
parentbb738aba5c70b662d0060e938da412012bae92bf (diff)
downloadpfsense-packages-fd27296d65a33e68f89846831ba45178df3a56fb.tar.gz
pfsense-packages-fd27296d65a33e68f89846831ba45178df3a56fb.tar.bz2
pfsense-packages-fd27296d65a33e68f89846831ba45178df3a56fb.zip
Also allow subnets in the proxy bypass fields.
Diffstat (limited to 'config/squid/squid.inc')
-rw-r--r--config/squid/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 61498294..5a17d8c9 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -362,14 +362,14 @@ function squid_validate_general($post, $input_errors) {
foreach (array('defined_ip_proxy_off') as $hosts) {
foreach (explode(";", $post[$hosts]) as $host) {
$host = trim($host);
- if (!empty($host) && !is_ipaddr($host) && !is_alias($host) && !is_hostname($host))
+ if (!empty($host) && !is_ipaddr($host) && !is_alias($host) && !is_hostname($host) && !is_subnet($host))
$input_errors[] = "The entry '$host' is not a valid IP address, hostname, or alias";
}
}
foreach (array('defined_ip_proxy_off_dest') as $hosts) {
foreach (explode(";", $post[$hosts]) as $host) {
$host = trim($host);
- if (!empty($host) && !is_ipaddr($host) && !is_alias($host) && !is_hostname($host))
+ if (!empty($host) && !is_ipaddr($host) && !is_alias($host) && !is_hostname($host) && !is_subnet($host))
$input_errors[] = "The entry '$host' is not a valid IP address, hostname, or alias";
}
}