diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-25 17:26:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-25 17:26:19 +0000 |
commit | 098e02193ea20298b6573a86bff4b2f2a2e2dfbf (patch) | |
tree | b998fc2d1a54e5bc1577726960ce04d7caa27528 /usr | |
parent | 43db03124d70403f256318bf6617859b052010a7 (diff) | |
download | pfsense-098e02193ea20298b6573a86bff4b2f2a2e2dfbf.zip pfsense-098e02193ea20298b6573a86bff4b2f2a2e2dfbf.tar.gz |
Reload the firewall rules when the shaper configuration changes.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 9 |
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); } } |