diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-08 18:25:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-08 18:25:50 +0000 |
commit | e8731417fc2f3af4c9607fd3e4de123383cced49 (patch) | |
tree | 9c30bcfa83d1a1f0558ec1f3f52eb12b65b82c98 /usr/local | |
parent | ecaf83995fde3bff07b4f693ad9a311624bf7046 (diff) | |
download | pfsense-e8731417fc2f3af4c9607fd3e4de123383cced49.zip pfsense-e8731417fc2f3af4c9607fd3e4de123383cced49.tar.gz |
If the user is applying the traffic shaper rules enable the service first.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 2 | ||||
-rwxr-xr-x | usr/local/www/firewall_shaper_queues.php | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index c0e5d27..8cf3461 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -56,6 +56,8 @@ if ($_POST) { } 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 */ 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 */ |