Add some missing interface types in is_interface_mismatch() and get_interface_list()'s $vfaces. Fixes #2384

This commit is contained in:
Erik Fonnesbeck 2012-04-20 01:07:12 -06:00
parent a6aedcd141
commit fd863e5ceb

View File

@ -823,6 +823,9 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "")
'pfsync',
'enc',
'tun',
'tap',
'ovpns',
'ovpnc',
'carp',
'lagg',
'vip',
@ -1446,7 +1449,7 @@ function is_interface_mismatch() {
$i = 0;
if (is_array($config['interfaces'])) {
foreach ($config['interfaces'] as $ifname => $ifcfg) {
if (preg_match("/^enc|^cua|^tun|^l2tp|^pptp|^ppp|^ovpn|^gif|^gre|^lagg|^bridge|vlan|_wlan/i", $ifcfg['if'])) {
if (preg_match("/^enc|^cua|^tun|^tap|^l2tp|^pptp|^ppp|^ovpn|^gif|^gre|^lagg|^bridge|vlan|_wlan/i", $ifcfg['if'])) {
// Do not check these interfaces.
$i++;
continue;