summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-07 01:44:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-07 01:44:54 +0000
commitcd34e2e5bd7d54dcd42fa04cdc8805affbdf1cce (patch)
tree08fb94f9509bca47c4299b046ec62031b0fa3bca
parent5ca160b369418100064881e6d388519d17401493 (diff)
downloadpfsense-cd34e2e5bd7d54dcd42fa04cdc8805affbdf1cce.zip
pfsense-cd34e2e5bd7d54dcd42fa04cdc8805affbdf1cce.tar.gz
$iflist should contain an array of interfaces Found-by: PHPEclipse
-rw-r--r--etc/inc/pfsense-utils.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index a021f26..2c4df01 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)
OpenPOWER on IntegriCloud