summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
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/traffic_shaper_wizard_dedicated.inc
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/traffic_shaper_wizard_dedicated.inc')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc6
1 files changed, 6 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();
OpenPOWER on IntegriCloud