diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2010-01-02 23:04:07 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2010-01-02 23:04:45 +0100 |
commit | 27616d6eb0427490ebafd51fc5875eb2e8eaedb6 (patch) | |
tree | c34a99bf30c9a5ecee419b6f93e18d8c90cc0d94 /etc/inc/util.inc | |
parent | 4cda5fb73bbfd242bdfbadbf0ac65eb803544c35 (diff) | |
download | pfsense-27616d6eb0427490ebafd51fc5875eb2e8eaedb6.zip pfsense-27616d6eb0427490ebafd51fc5875eb2e8eaedb6.tar.gz |
Restore interface list for vlan interfaces.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 8ec4470..0f52351 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -498,7 +498,7 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") 'faith', 'lo', 'ng', - 'vlan', + '_vlan', 'pflog', 'plip', 'pfsync', @@ -538,8 +538,7 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "") $alink = explode(" ", $link); $ifname = rtrim(trim($alink[0]), '*'); /* trim out all numbers before checking for vfaces */ - if (!in_array(array_shift(preg_split('/\d/', $ifname)), $vfaces) && - !stristr($ifname, "_vl")) { + if (!in_array(array_shift(preg_split('/\d/', $ifname)), $vfaces)) } $toput = array( "mac" => trim($alink[1]), "up" => in_array($ifname, $upints) |