diff options
-rwxr-xr-x | usr/local/www/firewall_nat.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php index e745bbc..e3f4e10 100755 --- a/usr/local/www/firewall_nat.php +++ b/usr/local/www/firewall_nat.php @@ -52,21 +52,21 @@ if ($_POST) { $retval = 0; - config_lock(); - $retval |= filter_configure(); - config_unlock(); - if(stristr($retval, "error") <> true) $savemsg = get_std_save_message($retval); else $savemsg = $retval; + unlink_if_exists("/tmp/config.cache"); + $retval |= filter_configure_sync(); + if ($retval == 0) { if (file_exists($d_natconfdirty_path)) unlink($d_natconfdirty_path); if (file_exists($d_filterconfdirty_path)) unlink($d_filterconfdirty_path); } + } } |