diff options
Diffstat (limited to 'packages/squid3/squid.inc')
-rw-r--r-- | packages/squid3/squid.inc | 5 |
1 files changed, 3 insertions, 2 deletions
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 |