diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-21 17:38:13 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-21 17:38:13 +0000 |
commit | 3e321df2be59d2bb4c2ffd51e410fe120517e316 (patch) | |
tree | 138e5336181e4a7e6d270301ea6208ad91e733bc /usr/local/www/services_dhcp_relay.php | |
parent | fbb45bb034aad683b2bd207a497d0cfc0b1b5a1e (diff) | |
download | pfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.zip pfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.tar.gz |
Continue interface improvements
Diffstat (limited to 'usr/local/www/services_dhcp_relay.php')
-rwxr-xr-x | usr/local/www/services_dhcp_relay.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/services_dhcp_relay.php b/usr/local/www/services_dhcp_relay.php index e3cc0c8..a64bbc2 100755 --- a/usr/local/www/services_dhcp_relay.php +++ b/usr/local/www/services_dhcp_relay.php @@ -63,13 +63,12 @@ $if = $_GET['if']; if ($_POST['if']) $if = $_POST['if']; -$iflist = array("lan" => "LAN"); +$ifdescrs = get_configured_interface_list(); +foreach ($ifdescrs as $ifname) { + $oc = $config['interfaces'][$ifname]; -for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { - $oc = $config['interfaces']['opt' . $i]; - - if (isset($oc['enable']) && $oc['if'] && (!$oc['bridge'])) { - $iflist['opt' . $i] = $oc['descr']; + if ($oc['if'] && (!$oc['bridge'])) { + $iflist[$ifname] = $oc['descr']; } } |