diff options
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r-- | packages/squid/squid.inc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index c7ec429a..d7f78268 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -448,18 +448,12 @@ function squid_resync_general() { foreach (explode(",", $ifaces) as $i => $iface) { $real_ifaces[] = squid_get_real_interface_address($iface); if($real_ifaces[$i][0]) { - if (($settings['transparent_proxy'] == 'on')) { - $conf .= "http_port 127.0.0.1:80 transparent\n"; - } - } else { - foreach (explode(",", $ifaces) as $i => $iface) { - $real_ifaces[] = squid_get_real_interface_address($iface); - if($real_ifaces[$i][0]) { - $conf .= "http_port {$real_ifaces[$i][0]}:$port\n"; - } - } + $conf .= "http_port {$real_ifaces[$i][0]}:$port\n"; } } + if (($settings['transparent_proxy'] == 'on')) { + $conf .= "http_port 127.0.0.1:80 transparent\n"; + } $icp_port = ($settings['icp_port'] ? $settings['icp_port'] : 0); $pidfile = "{$g['varrun_path']}/squid.pid"; |