bugfix: IP selection dropdown list is empty on dhcp reseveration/ports page.

This commit is contained in:
Conrad Lara - KG6JEI 2015-12-20 18:52:10 -08:00
parent d6db48fb48
commit 9c21a18f3f
1 changed files with 3 additions and 5 deletions

View File

@ -40,6 +40,7 @@ $debug = 0;
BEGIN {push @INC, '/www/cgi-bin'};
use perlfunc;
use ucifunc;
$config = nvram_get("config");
$node = nvram_get("node");
@ -172,11 +173,8 @@ if($parms{button_reset} or not $parms{reload})
# get the dhcp range
# assume that the lan setup is the only one that exists
foreach(`cat /etc/config/dhcp`)
{
$dhcp_start = $1 if /option start\s+(\d+)/;
$dhcp_limit = $1 if /option limit\s+(\d+)/;
}
($rc, $dhcp_start) = &uci_get_indexed_option("dhcp","dhcp","0","start");
($rc, $dhcp_limit) = &uci_get_indexed_option("dhcp","dhcp","0","limit");
$dhcp_end = $dhcp_start + $dhcp_limit - 1;