diff options
author | Martin Fuchs <mfuchs@pfsense.org> | 2008-08-20 20:26:15 +0000 |
---|---|---|
committer | Martin Fuchs <mfuchs@pfsense.org> | 2008-08-20 20:26:15 +0000 |
commit | 1197d84f577866a2617612e194753f15780ac483 (patch) | |
tree | 251717b7ed1aef6e7cae7e8336d80fc3f4ab2d0d | |
parent | 1f46c58b58e5a840a5d55d325fb7d95d32353e12 (diff) | |
download | pfsense-packages-1197d84f577866a2617612e194753f15780ac483.tar.gz pfsense-packages-1197d84f577866a2617612e194753f15780ac483.tar.bz2 pfsense-packages-1197d84f577866a2617612e194753f15780ac483.zip |
fixed icon bug mentioned in http://forum.pfsense.org/index.php/topic,11008.0.html
-rw-r--r-- | packages/squid/squid.inc | 5 | ||||
-rw-r--r-- | packages/squid3/squid.inc | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 9d1b6af4..5e2f08e7 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -648,7 +648,8 @@ function squid_resync_redirector() { function squid_resync_nac() { global $config, $valid_acls; - $settings = $config['installedpackages']['squidnac']['config'][0]; + $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); + $settings = $config['installedpackages']['squidnac']['config'][0]; $webgui_port = $config['system']['webgui']['port']; $conf = <<<EOD @@ -656,7 +657,7 @@ function squid_resync_nac() { # Setup some default acls acl all src 0.0.0.0/0.0.0.0 acl localhost src 127.0.0.1/255.255.255.255 -acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 $webgui_port 1025-65535 +acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 $port $webgui_port 1025-65535 acl sslports port 443 563 $webgui_port acl manager proto cache_object acl purge method PURGE diff --git a/packages/squid3/squid.inc b/packages/squid3/squid.inc index c9932f98..c383c3ce 100644 --- a/packages/squid3/squid.inc +++ b/packages/squid3/squid.inc @@ -648,14 +648,15 @@ function squid_resync_redirector() { function squid_resync_nac() { global $config, $valid_acls; - $settings = $config['installedpackages']['squidnac']['config'][0]; + $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); + $settings = $config['installedpackages']['squidnac']['config'][0]; $webgui_port = $config['system']['webgui']['port']; $conf = <<<EOD # Setup some default acls acl localhost src 127.0.0.1/255.255.255.255 -acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 $webgui_port 1025-65535 +acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 $port $webgui_port 1025-65535 acl sslports port 443 563 $webgui_port acl manager proto cache_object acl purge method PURGE |