aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-03 11:49:22 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-03 11:49:22 -0300
commit33d59b6eae2a934250a0d7d53d3231d1d3702b81 (patch)
tree8aead0c4dab2281ffca9e8eedabcf70cb0ab3bcc
parent95e44f068bf13b19861d5d82111e0610ce02840b (diff)
downloadpfsense-packages-33d59b6eae2a934250a0d7d53d3231d1d3702b81.tar.gz
pfsense-packages-33d59b6eae2a934250a0d7d53d3231d1d3702b81.tar.bz2
pfsense-packages-33d59b6eae2a934250a0d7d53d3231d1d3702b81.zip
squid3 - fix unrestricted_auth check
-rw-r--r--config/squid-reverse/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc
index 355a61f0..51e5892c 100644
--- a/config/squid-reverse/squid.inc
+++ b/config/squid-reverse/squid.inc
@@ -1239,7 +1239,7 @@ function squid_resync_auth() {
// Unrestricted hosts take precedence over blacklist
if(! empty($settingsnac['unrestricted_hosts'])) {
- if (squid_is_valid_acl('unrestricted_hosts')) {
+ if (squid_is_valid_acl('unrestricted_hosts') && $settings['unrestricted_auth']!= "on") {
$conf .= "# These hosts do not have any restrictions\n";
$conf .= "http_access allow unrestricted_hosts\n";
}