summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_queues.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-08 18:25:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-08 18:25:50 +0000
commite8731417fc2f3af4c9607fd3e4de123383cced49 (patch)
tree9c30bcfa83d1a1f0558ec1f3f52eb12b65b82c98 /usr/local/www/firewall_shaper_queues.php
parentecaf83995fde3bff07b4f693ad9a311624bf7046 (diff)
downloadpfsense-e8731417fc2f3af4c9607fd3e4de123383cced49.zip
pfsense-e8731417fc2f3af4c9607fd3e4de123383cced49.tar.gz
If the user is applying the traffic shaper rules enable the service first.
Diffstat (limited to 'usr/local/www/firewall_shaper_queues.php')
-rwxr-xr-xusr/local/www/firewall_shaper_queues.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php
index 94169d5..df35c81 100755
--- a/usr/local/www/firewall_shaper_queues.php
+++ b/usr/local/www/firewall_shaper_queues.php
@@ -48,6 +48,25 @@ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
$iflist['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
}
+if ($_POST['apply'] || $_POST['submit']) {
+ $config['shaper']['enable'] = true;
+ write_config();
+
+ $retval = 0;
+ $savemsg = get_std_save_message($retval);
+ /* Setup pf rules since the user may have changed the optimization value */
+ //config_lock();
+ $retval = filter_configure();
+ //config_unlock();
+ if(stristr($retval, "error") <> true)
+ $savemsg = get_std_save_message($retval);
+ else
+ $savemsg = $retval;
+
+ if(file_exists($d_shaperconfdirty_path))
+ unlink($d_shaperconfdirty_path);
+}
+
if ($_GET['act'] == "del") {
if ($a_queues[$_GET['id']]) {
/* check that no rule references this queue */
OpenPOWER on IntegriCloud