mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
Services: ISC DHCPv4: Relay - do not add interfaces for virtual types.
missed a spot in previous
This commit is contained in:
parent
a6a6aff456
commit
f25adff8fa
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user