Services: ISC DHCPv4: Relay - do not add interfaces for virtual types.

missed a spot in previous
This commit is contained in:
Ad Schellevis 2024-03-04 15:20:01 +01:00
parent a6a6aff456
commit f25adff8fa

View File

@ -1634,7 +1634,6 @@ function dhcpd_dhcrelay4_configure($verbose = false)
}
service_log('Starting DHCPv4 relay...', $verbose);
$ifdetails = legacy_interfaces_details();
killbypid('/var/run/dhcrelay.pid');
@ -1710,8 +1709,8 @@ function dhcpd_dhcrelay4_configure($verbose = false)
}
}
if (!empty($destif) && isset($ifdetails[$destif]) && $ifdetails[$destif]['macaddr'] == '00:00:00:00:00:00') {
/* explicit skip when interface has no mac address */
if (!empty($destif) && isset($ifconfig_details[$destif]) && $ifconfig_details[$destif]['macaddr'] == '00:00:00:00:00:00') {
/* explicit skip when interface has no valid mac address */
continue;
} elseif (!empty($destif)) {
$dhcrelayifs[] = $destif;