mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix get_parent_interface() for ppp interfaces, it was using an unset variable $ppp_if
This commit is contained in:
parent
83bab77be7
commit
02b8bfaebe
@ -3597,7 +3597,7 @@ function get_parent_interface($interface) {
|
||||
if (empty($parents))
|
||||
if (is_array($config['ppps']['ppp']))
|
||||
foreach ($config['ppps']['ppp'] as $pppidx => $ppp) {
|
||||
if ($ppp_if == $ppp['if']) {
|
||||
if ($ifcfg['if'] == $ppp['if']) {
|
||||
$ports = explode(',', $ppp['ports']);
|
||||
foreach ($ports as $pid => $parent_if)
|
||||
$parents[$pid] = get_real_interface($parent_if);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user