diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-07-24 17:13:08 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-07-24 18:28:00 -0300 |
commit | 070aeff3b72fb2a5627f933b6595b2489f946b71 (patch) | |
tree | d10d3292d8bd9c48df64eaab618660503712113e /usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | |
parent | c1d09bfe11ec41b4e1700c49a5b6f1e0eb6c0b10 (diff) | |
download | pfsense-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.inc | 6 |
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(); |