mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixes #4427 Correct traffic shaper wizard to properly save and use Voip provided settings
This commit is contained in:
parent
d3fa306d0a
commit
ea7ad4c25f
@ -489,8 +489,8 @@ function step3_stepsubmitphpaction() {
|
||||
if (!$_POST['enable'])
|
||||
return;
|
||||
|
||||
if($_POST['address']) {
|
||||
if(!is_ipaddroralias($_POST['address'])) {
|
||||
if($_POST['upstream_sip_server']) {
|
||||
if(!is_ipaddroralias($_POST['upstream_sip_server'])) {
|
||||
/* item is not an ip or alias. error out */
|
||||
$savemsg=gettext("Address must be a valid IP address or Firewall Alias. Please correct this value to continue.");
|
||||
$stepid--;
|
||||
@ -555,6 +555,10 @@ function step3_stepsubmitphpaction() {
|
||||
unset($config['ezshaper']['step3']);
|
||||
$config['ezshaper']['step3'] = array();
|
||||
|
||||
if (!empty($_POST['upstream_sip_server']))
|
||||
$config['ezshaper']['step3']['address'] = $_POST['upstream_sip_server'];
|
||||
if ($_POST['enable'] == 'on')
|
||||
$config['ezshaper']['step3']['enable'] = 'on';
|
||||
for ($i = 0; $i < $steps; $i++) {
|
||||
$config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"];
|
||||
$config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user