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:
jayantsahtoe 2019-07-29 16:11:04 +02:00 committed by Ad Schellevis
parent 440f957e5c
commit 5866de72c9

View File

@ -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;
}
}