From cd34e2e5bd7d54dcd42fa04cdc8805affbdf1cce Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 7 Apr 2006 01:44:54 +0000 Subject: [PATCH] $iflist should contain an array of interfaces Found-by: PHPEclipse --- etc/inc/pfsense-utils.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index a021f26849..2c4df01d9d 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1371,7 +1371,12 @@ function reload_interfaces_sync() { if($debug) log_error("Cleaning up Interfaces"); - + + /* build an array of interfaces to work with */ + $iflist = array("lan" => "LAN"); + for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) + $iflist['opt' . $i] = "opt{$i}"; + foreach ($iflist as $ifent => $ifname) { $ifname_real = convert_friendly_interface_to_real_interface_name($ifname); if(stristr($ifname, "lo0") == true)