interfaces: get_interface_mac() not returning cached MAC result

Looks like this went unnoticed since 22.1.2.

PR: https://forum.opnsense.org/index.php?topic=29691.0
This commit is contained in:
Franco Fichtner 2022-08-04 23:37:46 +02:00
parent 83c1ce1b6f
commit d19cd6cdbf

View File

@ -3781,8 +3781,8 @@ function get_interface_mac($interface, $ifconfig_details = null)
if (empty($ifconfig_details)) {
$intf_details = legacy_interface_details($interface);
} elseif (!empty($ifconfig_details[$ifs])) {
$intf_details = $ifconfig_details[$ifs];
} elseif (!empty($ifconfig_details[$interface])) {
$intf_details = $ifconfig_details[$interface];
}
return $intf_details['macaddr'];