diff options
author | Martin Fuchs <mfuchs@pfsense.org> | 2008-08-24 19:09:33 +0000 |
---|---|---|
committer | Martin Fuchs <mfuchs@pfsense.org> | 2008-08-24 19:09:33 +0000 |
commit | 6182ddebe44b3c741ff3fbb7f299f85463fca686 (patch) | |
tree | dde2f9b77625487fbfff53864dd2f44efc2efc91 /packages/squid/squid.inc | |
parent | 997109c592ade388b7548b21e9bb7ae4901d9513 (diff) | |
download | pfsense-packages-6182ddebe44b3c741ff3fbb7f299f85463fca686.tar.gz pfsense-packages-6182ddebe44b3c741ff3fbb7f299f85463fca686.tar.bz2 pfsense-packages-6182ddebe44b3c741ff3fbb7f299f85463fca686.zip |
ticket: 1806 fixed
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r-- | packages/squid/squid.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 444a4406..5bfe57fb 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -4,7 +4,6 @@ squid.inc Copyright (C) 2006 Scott Ullrich Copyright (C) 2006 Fernando Lemos - Copyright (C) 2008 Martin Fuchs All rights reserved. Redistribution and use in source and binary forms, with or without @@ -529,7 +528,7 @@ function squid_resync_general() { $language = ($settings['error_language'] ? $settings['error_language'] : 'English'); $errordir = SQUID_CONFBASE . '/errors/' . $language; $icondir = SQUID_CONFBASE . '/icons'; - $hostname = ($settings['visible_hostname'] ? $settings['visible_hostname'] : 'localhost'); + $hostname = ($settings['visible_hostname'] ? $settings['visible_hostname'] : 'localhost'); $email = ($settings['admin_email'] ? $settings['admin_email'] : 'admin@localhost'); $logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/log'); @@ -619,7 +618,10 @@ EOD; $conf .= 'acl donotcache dstdomain "' . SQUID_ACLDIR . "/donotcache.acl\"\n"; $conf .= 'cache deny donotcache'; } - + elseif (file_exists(SQUID_ACLDIR . '/donotcache.acl')) { + unlink(SQUID_ACLDIR . '/donotcache.acl'); + } + return $conf; } @@ -655,7 +657,7 @@ function squid_resync_redirector() { function squid_resync_nac() { global $config, $valid_acls; - $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); + $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); $settings = $config['installedpackages']['squidnac']['config'][0]; $webgui_port = $config['system']['webgui']['port']; @@ -698,10 +700,12 @@ EOD; $conf .= "acl $option $directive \"" . SQUID_ACLDIR . "/$option.acl\"\n"; $valid_acls[] = $option; } + elseif (file_exists(SQUID_ACLDIR . "/$option.acl")) { + unlink(SQUID_ACLDIR . "/$option.acl"); + } } $conf .= <<<EOD - cache deny dynamic http_access allow manager localhost |