summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2012-04-20 01:07:12 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2012-04-20 01:11:06 -0600
commitfd863e5cebe67258ed48387d6471c4411701cf6b (patch)
treed01f5003ec44aec584d16f0b36bb5389d829bcf6
parenta6aedcd141d649d30ff4182bc5cc8f2fc371b7c3 (diff)
downloadpfsense-fd863e5cebe67258ed48387d6471c4411701cf6b.zip
pfsense-fd863e5cebe67258ed48387d6471c4411701cf6b.tar.gz
Add some missing interface types in is_interface_mismatch() and get_interface_list()'s $vfaces. Fixes #2384
-rw-r--r--etc/inc/util.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 5a142db..68bccf4 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;
OpenPOWER on IntegriCloud