diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_nat.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php index 899add4..8b056de 100755 --- a/usr/local/www/firewall_nat.php +++ b/usr/local/www/firewall_nat.php @@ -47,16 +47,13 @@ if ($_POST) { if ($_POST['apply']) { write_config(); - - filter_configure(); $retval = 0; + + config_lock(); + $retval |= filter_configure(); + config_unlock(); - if (!file_exists($d_sysrebootreqd_path)) { - config_lock(); - $retval |= filter_configure(); - config_unlock(); - } if(stristr($retval, "error") <> true) $savemsg = get_std_save_message($retval); else |