summaryrefslogtreecommitdiffstats
path: root/usr/local/www/easyrule.inc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/easyrule.inc')
-rw-r--r--usr/local/www/easyrule.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/easyrule.inc b/usr/local/www/easyrule.inc
index f49e791..1900f24 100644
--- a/usr/local/www/easyrule.inc
+++ b/usr/local/www/easyrule.inc
@@ -208,9 +208,7 @@ function easyrule_block_host_add($host, $int = 'wan') {
/* If needed, write the config and reload the filter */
if ($dirty) {
write_config();
- config_lock();
$retval = filter_configure();
- config_unlock();
header("Location: firewall_aliases.php");
exit;
} else {
@@ -251,10 +249,8 @@ function easyrule_pass_rule_add($int, $proto, $srchost, $dsthost, $dstport) {
$a_filter[] = $filterent;
write_config();
- config_lock();
$retval = filter_configure();
- config_unlock();
header("Location: firewall_rules.php?if={$int}");
exit;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud