Revision ea7ad4c2
Added by Ermal Luçi over 10 years ago
usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | ||
---|---|---|
489 | 489 |
if (!$_POST['enable']) |
490 | 490 |
return; |
491 | 491 |
|
492 |
if($_POST['address']) {
|
|
493 |
if(!is_ipaddroralias($_POST['address'])) {
|
|
492 |
if($_POST['upstream_sip_server']) {
|
|
493 |
if(!is_ipaddroralias($_POST['upstream_sip_server'])) {
|
|
494 | 494 |
/* item is not an ip or alias. error out */ |
495 | 495 |
$savemsg=gettext("Address must be a valid IP address or Firewall Alias. Please correct this value to continue."); |
496 | 496 |
$stepid--; |
... | ... | |
555 | 555 |
unset($config['ezshaper']['step3']); |
556 | 556 |
$config['ezshaper']['step3'] = array(); |
557 | 557 |
|
558 |
if (!empty($_POST['upstream_sip_server'])) |
|
559 |
$config['ezshaper']['step3']['address'] = $_POST['upstream_sip_server']; |
|
560 |
if ($_POST['enable'] == 'on') |
|
561 |
$config['ezshaper']['step3']['enable'] = 'on'; |
|
558 | 562 |
for ($i = 0; $i < $steps; $i++) { |
559 | 563 |
$config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"]; |
560 | 564 |
$config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"]; |
Also available in: Unified diff
Fixes #4427 Correct traffic shaper wizard to properly save and use Voip provided settings