mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
dhcpd: staticmap output does not contain device names
This commit is contained in:
parent
5c3235872a
commit
80e4bec768
@ -151,8 +151,8 @@ class LeasesController extends ApiControllerBase
|
||||
|
||||
if (!empty($lease['if'])) {
|
||||
/* interface already included */
|
||||
$intf = $lease['if'];
|
||||
$intf_descr = $if_map[strtoupper($intf)];
|
||||
$intf = array_search(strtoupper($lease['if']), $if_map);
|
||||
$intf_descr = $if_map[$intf];
|
||||
} else {
|
||||
/* interface not known, check range */
|
||||
foreach ($ip_ranges as $cidr => $if_dev) {
|
||||
|
||||
@ -194,8 +194,8 @@ class LeasesController extends ApiControllerBase
|
||||
$intf = '';
|
||||
$intf_descr = '';
|
||||
if (!empty($lease['if'])) {
|
||||
$intf = $lease['if'];
|
||||
$intf_descr = $if_map[strtoupper($intf)];
|
||||
$intf = array_search(strtoupper($lease['if']), $if_map);;
|
||||
$intf_descr = $if_map[$intf];
|
||||
} else {
|
||||
foreach ($ip_ranges as $cidr => $if) {
|
||||
if (!empty($lease['address']) && Util::isIPInCIDR($lease['address'], $cidr)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user