summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-08 18:11:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-08 18:11:57 +0000
commitecaf83995fde3bff07b4f693ad9a311624bf7046 (patch)
tree506fd4f9e76bc5dfc26ad52862cad0015b268faa /usr/local/www/firewall_shaper_edit.php
parenta771093722fbcf5eabccca936629686fa37cc235 (diff)
downloadpfsense-ecaf83995fde3bff07b4f693ad9a311624bf7046.zip
pfsense-ecaf83995fde3bff07b4f693ad9a311624bf7046.tar.gz
Save target queue correctly after editing.
Diffstat (limited to 'usr/local/www/firewall_shaper_edit.php')
-rwxr-xr-xusr/local/www/firewall_shaper_edit.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr/local/www/firewall_shaper_edit.php b/usr/local/www/firewall_shaper_edit.php
index 0e9f547..5d27a30 100755
--- a/usr/local/www/firewall_shaper_edit.php
+++ b/usr/local/www/firewall_shaper_edit.php
@@ -127,11 +127,7 @@ if (isset($id) && $a_shaper[$id]) {
$pconfig['dstmask'], $pconfig['dstnot'],
$pconfig['dstbeginport'], $pconfig['dstendport']);
- if (isset($a_shaper[$id]['targetpipe'])) {
- $pconfig['target'] = "targetpipe:" . $a_shaper[$id]['targetpipe'];
- } else if (isset($a_shaper[$id]['targetqueue'])) {
- $pconfig['target'] = "targetqueue:" . $a_shaper[$id]['targetqueue'];
- }
+ $pconfig['targetqueue'] = $a_shaper[$id]['targetqueue'];
$pconfig['direction'] = $a_shaper[$id]['direction'];
$pconfig['iptos'] = $a_shaper[$id]['iptos'];
@@ -327,8 +323,7 @@ if ($_POST) {
$shaperent['descr'] = $_POST['descr'];
$shaperent['disabled'] = $_POST['disabled'] ? true : false;
- list($targettype,$target) = explode(":", $_POST['target']);
- $shaperent[$targettype] = $target;
+ $shaperent['targetqueue'] = $_POST['target'];
if (isset($id) && $a_shaper[$id])
$a_shaper[$id] = $shaperent;
OpenPOWER on IntegriCloud