From fddb303af44e3d357e2ac4e602b77ab0ad28c6db Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 5 Mar 2017 22:32:29 +0100 Subject: Add reason to write_config() calls --- src/etc/inc/easyrule.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/etc/inc/easyrule.inc') diff --git a/src/etc/inc/easyrule.inc b/src/etc/inc/easyrule.inc index b86a39e..766eb2e 100644 --- a/src/etc/inc/easyrule.inc +++ b/src/etc/inc/easyrule.inc @@ -263,7 +263,7 @@ function easyrule_block_host_add($host, $int = 'wan', $ipproto = "inet") { /* If needed, write the config and reload the filter */ if ($dirty) { - write_config(); + write_config(sprintf(gettext("Blocked host %s via easy rule"), $host)); $retval = filter_configure(); if (!empty($_SERVER['DOCUMENT_ROOT'])) { header("Location: firewall_aliases.php"); @@ -413,7 +413,7 @@ function easyrule_parse_unblock($int, $host, $ipproto = "inet") { $config['aliases']['alias'][$id]['detail'] = join("||", $a_detail); // Update config - write_config(); + write_config(sprintf(gettext("Unblocked host %s via easy rule"), $host)); $retval = filter_configure(); if (!empty($_SERVER['DOCUMENT_ROOT'])) { header("Location: firewall_aliases.php"); -- cgit v1.1