mirror of https://github.com/aredn/aredn.git
bugfix: IP selection dropdown list is empty on dhcp reseveration/ports page.
This commit is contained in:
parent
d6db48fb48
commit
9c21a18f3f
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue