From 098e02193ea20298b6573a86bff4b2f2a2e2dfbf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 25 Jan 2005 17:26:19 +0000 Subject: Reload the firewall rules when the shaper configuration changes. --- usr/local/www/firewall_shaper.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr/local/www/firewall_shaper.php') 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); } } -- cgit v1.1