mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
Update dhcpd.inc (#3610)
DHCP-relay service will fail with the following error if DHCP server IP is know in static route:
dhcrelay: Can't attach interface {ifname} to bpf device /dev/bpf0: Device not configured
This is the only place where get_real_interface( ) isn't used
This commit is contained in:
parent
440f957e5c
commit
5866de72c9
@ -1641,7 +1641,7 @@ function dhcpd_dhcrelay4_configure($verbose = false)
|
||||
if (!isset($destif)) {
|
||||
foreach (get_staticroutes() as $rtent) {
|
||||
if (ip_in_subnet($srvip, $rtent['network'])) {
|
||||
$destif = $a_gateways[$rtent['gateway']]['interface'];
|
||||
$destif = get_real_interface($a_gateways[$rtent['gateway']]['interface']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user