diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-07 12:38:03 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-07 12:38:03 +0000 |
commit | 963a33c37c8d6f0ed057697e23cd47c74133c9f7 (patch) | |
tree | b77dab5f8770be08f14fa89120137dded312e968 /etc | |
parent | b0e480771d29f7529f4fdbde4707ca02c650d154 (diff) | |
download | pfsense-963a33c37c8d6f0ed057697e23cd47c74133c9f7.zip pfsense-963a33c37c8d6f0ed057697e23cd47c74133c9f7.tar.gz |
Do not step on var.
Make exception for vlans
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index ec7fa93..2fe055d 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1028,13 +1028,13 @@ function setup_polling() { foreach ($iflist as $ifent => $ifname) { $real_interface = convert_friendly_interface_to_real_interface_name($ifname); $supported = false; - foreach($supported_ints as $supported) { - if(stristr($real_interface, $supported)) { + foreach($supported_ints as $supported_int) { + if(stristr($real_interface, $supported_int)) { $supported = true; } - if (stristr($real_interface, "vlan")) { - $supported = false; - } + } + if (stristr($real_interface, "vlan")) { + $supported = false; } if ($supported == true) { mwexec("/sbin/ifconfig {$real_interface} polling"); |