summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper.php
diff options
context:
space:
mode:
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