diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-22 16:30:16 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-22 16:30:16 -0200 |
commit | 934083c79e1cb06ca1ac924cb2bc5e054f2c6ce5 (patch) | |
tree | 323a416814c7f64c66f43b286a9deb5ed5c8437d /src/usr/local/www/wizards | |
parent | 379b4b6d95121198e9a5d02018b988220649b737 (diff) | |
download | pfsense-934083c79e1cb06ca1ac924cb2bc5e054f2c6ce5.zip pfsense-934083c79e1cb06ca1ac924cb2bc5e054f2c6ce5.tar.gz |
Relax shaper wizard interface validation when there are no interfaces with gateways selected. Fixes #5424
Diffstat (limited to 'src/usr/local/www/wizards')
-rw-r--r-- | src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc index d69eadb..3d155fc 100644 --- a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -109,6 +109,7 @@ function step2_stepbeforeformdisplay() { global $config, $pkg; global $stepid, $savemsg; + $list_all_ifs = false; $wans = 0; $lans = 0; $iflist = array(); @@ -122,6 +123,10 @@ function step2_stepbeforeformdisplay() { $lans++; $iflist[$if] = $ifdesc; } + if ($wans == 0) { + $list_all_ifs = true; + $wans = $lans; + } $numberofconnections = intval($config['ezshaper']['step1']['numberofconnections']); if ($numberofconnections > $wans) { $savemsg=gettext("You have less interfaces than number of connections!"); @@ -213,7 +218,8 @@ function step2_stepbeforeformdisplay() { $field['options']['option'] = array(); foreach ($iflist as $ifname => $ifdescr) { // Skip lan interfaces here - if (!interface_has_gateway($ifname) && + if (!$list_all_ifs && + !interface_has_gateway($ifname) && !interface_has_gatewayv6($ifname)) { continue; } |