From 33d59b6eae2a934250a0d7d53d3231d1d3702b81 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Tue, 3 Jul 2012 11:49:22 -0300 Subject: squid3 - fix unrestricted_auth check --- config/squid-reverse/squid.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit v1.2.3