summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-24 17:13:08 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-24 18:28:00 -0300
commit070aeff3b72fb2a5627f933b6595b2489f946b71 (patch)
treed10d3292d8bd9c48df64eaab618660503712113e /usr/local/www/wizards
parentc1d09bfe11ec41b4e1700c49a5b6f1e0eb6c0b10 (diff)
downloadpfsense-070aeff3b72fb2a5627f933b6595b2489f946b71.zip
pfsense-070aeff3b72fb2a5627f933b6595b2489f946b71.tar.gz
Just show right type of interfaces (LAN/WAN) on traffic shapper wizards, it fixes #3535
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc6
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc6
2 files changed, 12 insertions, 0 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
index 461877f..6e22f4f 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
@@ -91,6 +91,9 @@ function step2_stepbeforeformdisplay() {
$field['options']['option'] = array();
$ifcnt = 0;
foreach ($iflist as $ifname => $ifdescr) {
+ // Skip wan interfaces here
+ if (interface_has_gateway($ifname) || interface_has_gatewayv6($ifname))
+ continue;
if ($ifcnt == ($ifsel + 1))
$field['value'] = $ifname;
$opts = array();
@@ -134,6 +137,9 @@ function step2_stepbeforeformdisplay() {
$field['options']['option'] = array();
$ifcnt = 0;
foreach ($iflist as $ifname => $ifdescr) {
+ // Skip lan interfaces here
+ if (!interface_has_gateway($ifname) && !interface_has_gatewayv6($ifname))
+ continue;
if ($ifcnt == $ifsel)
$field['value'] = $ifname;
$opts = array();
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
index 3cb97e5..20fc71e 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
@@ -96,6 +96,9 @@ function step2_stepbeforeformdisplay() {
$field['type'] = "select";
$field['options']['option'] = array();
foreach ($iflist as $ifname => $ifdescr) {
+ // Skip wan interfaces here
+ if (interface_has_gateway($ifname) || interface_has_gatewayv6($ifname))
+ continue;
$opts = array();
$opts['displayname'] = $ifdescr;
$opts['name'] = $ifname;
@@ -144,6 +147,9 @@ function step2_stepbeforeformdisplay() {
$interface_real = $i+1;
$field['options']['option'] = array();
foreach ($iflist as $ifname => $ifdescr) {
+ // Skip lan interfaces here
+ if (!interface_has_gateway($ifname) && !interface_has_gatewayv6($ifname))
+ continue;
$opts = array();
$opts['displayname'] = $ifdescr;
$opts['name'] = $ifname;
OpenPOWER on IntegriCloud