diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-03 17:13:46 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-03 17:13:46 +0000 |
commit | 553b5d85291a7204fa7aab40c3925b5b1890a7ca (patch) | |
tree | 5643dec2e24fd2952ebe6dc2fbc2fe9d5580c6b4 /etc/inc | |
parent | a859fb49c7eb6cffad6bf8afd088bb91081cb9b2 (diff) | |
download | pfsense-553b5d85291a7204fa7aab40c3925b5b1890a7ca.zip pfsense-553b5d85291a7204fa7aab40c3925b5b1890a7ca.tar.gz |
Remove uneccessary devices from regex.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 8765bac..5f6ce74 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2645,7 +2645,7 @@ function find_interface_subnet($interface, $flush = false) return; if (!isset($interface_sn_arr_cache[$interface]) or $flush) { - if (preg_match("/^tun|^ppp|^pptp|^pppoe|^ovpn|^gif|^gre|^lagg|^bridge|*vlan/i", $interface)) + if (preg_match("/^tun|^ppp|^pptp|^pppoe|^ovpn|^gif|^gre/i", $interface)) $interface_sn_arr_cache[$interface] = `/sbin/ifconfig {$interface} | /usr/bin/grep -w "inet" | /usr/bin/cut -d" " -f 6 | /usr/bin/head -1`; else $interface_sn_arr_cache[$interface] = `/sbin/ifconfig {$interface} | /usr/bin/grep -w "inet" | /usr/bin/cut -d" " -f 4 | /usr/bin/head -1`; |