aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid/squid.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-01-16 12:27:25 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-01-16 12:27:25 +0000
commitea093d46363a01833e8b64dd538990227bea19d2 (patch)
tree62b29a13f7bf79bc5cb4b8ddd37a9d493c4b407d /packages/squid/squid.inc
parentf7a259d092d49b92e056f3253f33f0bec02b6cf4 (diff)
downloadpfsense-packages-ea093d46363a01833e8b64dd538990227bea19d2.tar.gz
pfsense-packages-ea093d46363a01833e8b64dd538990227bea19d2.tar.bz2
pfsense-packages-ea093d46363a01833e8b64dd538990227bea19d2.zip
Fix allow interface check against proper $config settings.
Was this theoretical proof of concept code?
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r--packages/squid/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 9dccb9b1..5b9b9156 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -634,6 +634,7 @@ function squid_resync_auth() {
global $config, $valid_acls;
$settings = $config['installedpackages']['squidauth']['config'][0];
+ $settingsconfig = $config['installedpackages']['squid']['config'][0];
$conf = '';
// Deny the banned guys before allowing the good guys
@@ -675,10 +676,9 @@ function squid_resync_auth() {
$transparent_proxy = ($config['installedpackages']['squid']['config'][0]['transparent_proxy'] == 'on');
$auth_method = (($settings['auth_method'] && !$transparent_proxy) ? $settings['auth_method'] : 'none');
-
// Allow the remaining ACLs if no authentication is set
if ($auth_method == 'none') {
- if ($settings['allow_interface'] == 'on') {
+ if ($settingsconfig['allow_interface'] == 'on') {
$allowed = array('localnet', 'allowed_subnets');
$allowed = array_filter($allowed, 'squid_is_valid_acl');
foreach ($allowed as $acl)