summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-07 12:38:03 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-07 12:38:03 +0000
commit963a33c37c8d6f0ed057697e23cd47c74133c9f7 (patch)
treeb77dab5f8770be08f14fa89120137dded312e968 /etc
parentb0e480771d29f7529f4fdbde4707ca02c650d154 (diff)
downloadpfsense-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.inc10
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");
OpenPOWER on IntegriCloud