From fd863e5cebe67258ed48387d6471c4411701cf6b Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Fri, 20 Apr 2012 01:07:12 -0600 Subject: [PATCH] Add some missing interface types in is_interface_mismatch() and get_interface_list()'s $vfaces. Fixes #2384 --- etc/inc/util.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 5a142dbbad..68bccf492e 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -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;