summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-25 17:26:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-25 17:26:19 +0000
commit098e02193ea20298b6573a86bff4b2f2a2e2dfbf (patch)
treeb998fc2d1a54e5bc1577726960ce04d7caa27528 /usr/local/www/firewall_shaper.php
parent43db03124d70403f256318bf6617859b052010a7 (diff)
downloadpfsense-098e02193ea20298b6573a86bff4b2f2a2e2dfbf.zip
pfsense-098e02193ea20298b6573a86bff4b2f2a2e2dfbf.tar.gz
Reload the firewall rules when the shaper configuration changes.
Diffstat (limited to 'usr/local/www/firewall_shaper.php')
-rwxr-xr-xusr/local/www/firewall_shaper.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php
index c574979..a7d57b7 100755
--- a/usr/local/www/firewall_shaper.php
+++ b/usr/local/www/firewall_shaper.php
@@ -58,10 +58,11 @@ if ($_POST) {
if ($_POST['apply'] || $_POST['submit']) {
$retval = 0;
$savemsg = get_std_save_message($retval);
- if ($retval == 0) {
- if (file_exists($d_shaperconfdirty_path))
- unlink($d_shaperconfdirty_path);
- }
+ /* Setup pf rules since the user may have changed the optimization value */
+ config_lock();
+ $retval = filter_configure();
+ config_unlock();
+ exec("rm " . $d_shaperconfdirty_path);
}
}
OpenPOWER on IntegriCloud