diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 5a2f29ab8d..12391efea6 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -53,16 +53,10 @@ if($config['installedpackages']['olsrd']) { } } -$ifdescrs = get_configured_interface_with_descr(); +if (!$_GET['if']) + $savemsg = "The DHCP Server can only be enabled on interfaces configured with static IP addresses.
The interfaces not configured with static ip will not be shown.
"; -foreach ($ifdescrs as $ifname => $ifdesc) { - $oc = $config['interfaces'][$ifname]; - - if (!is_ipaddr($oc['ipaddr']) && !$is_olsr_enabled) - $singleif_nostaticip = true; - else if ($oc['if']) - $iflist[$ifname] = $ifdesc; -} +$iflist = get_configured_interface_with_descr(); /* set the starting interface */ if($config['interfaces']['lan']) { @@ -379,13 +373,6 @@ function show_netboot_config() { echo "