mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
Services: DHCPv4 - when cleaning up static leases we probably shouldn't remove the ones where only a mac address is set (as placeholder for a description). could be https://github.com/opnsense/core/issues/6532
This commit is contained in:
parent
aefd3f0c2e
commit
2850c263c8
@ -55,8 +55,8 @@ if (isset($opts['m'])) {
|
||||
foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) {
|
||||
if (!empty($dhcpifconf['staticmap']) && !empty($dhcpifconf['enable'])) {
|
||||
foreach ($dhcpifconf['staticmap'] as $static) {
|
||||
if (!empty($static['mac'])) {
|
||||
$addresses[$static['mac']] = !empty($static['ipaddr']) ? $static['ipaddr'] : "";
|
||||
if (!empty($static['mac']) && !empty($static['ipaddr'])) {
|
||||
$addresses[$static['mac']] = $static['ipaddr'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user