mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix a bug in interface_is_vlan(), only check QinQ interfaces when they exist.
This commit is contained in:
parent
9875c1999b
commit
beabf7e7e3
@ -304,7 +304,12 @@ function interface_is_vlan($if = NULL) {
|
||||
return ($vlan);
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for the first level tag in QinQ interfaces. */
|
||||
if (!isset($config['qinqs']['qinqentry']) ||
|
||||
!is_array($config['qinqs']['qinqentry'])) {
|
||||
return (NULL);
|
||||
}
|
||||
foreach ($config['qinqs']['qinqentry'] as $qinqidx => $qinq) {
|
||||
if ($if == $qinq['vlanif']) {
|
||||
return ($qinq);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user