mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use the pfSense module calls for getting interface mac. Improves speed and correctnes.
This commit is contained in:
parent
3f70e61864
commit
7d6076f3fd
@ -2869,8 +2869,8 @@ function get_interface_mtu($interface) {
|
||||
}
|
||||
|
||||
function get_interface_mac($interface) {
|
||||
|
||||
$macinfo = pfSense_get_interface_addresses($interface);
|
||||
|
||||
return $macinfo["macaddr"];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user