aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/squid.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index c7ce446a..e28b31e6 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -282,7 +282,8 @@ EOD;
$real_ifaces = array();
foreach (explode(',', $ifaces) as $i => $iface) {
$real_ifaces[] = squid_get_real_interface_address($iface);
- $conf .= "http_port {$real_ifaces[$i][0]}:$port\n";
+ if($real_ifaces[$i][0])
+ $conf .= "http_port {$real_ifaces[$i][0]}:$port\n";
}
$icp_port = ($settings['icp_port'] ? $settings['icp_port'] : 0);