diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-08 18:11:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-08 18:11:57 +0000 |
commit | ecaf83995fde3bff07b4f693ad9a311624bf7046 (patch) | |
tree | 506fd4f9e76bc5dfc26ad52862cad0015b268faa | |
parent | a771093722fbcf5eabccca936629686fa37cc235 (diff) | |
download | pfsense-ecaf83995fde3bff07b4f693ad9a311624bf7046.zip pfsense-ecaf83995fde3bff07b4f693ad9a311624bf7046.tar.gz |
Save target queue correctly after editing.
-rwxr-xr-x | usr/local/www/firewall_shaper_edit.php | 9 |
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; |