mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
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:
parent
83c1ce1b6f
commit
d19cd6cdbf
@ -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'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user