summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-08 20:56:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-08 20:56:50 +0000
commit56b79a8d17dc7fb9dc3688a038c6c9f7adef6b28 (patch)
tree0ef3182bf63e7a003b277b06afec57967e3b7fce
parent2f6f9dc381fee47735b8fdf2bcad02ca12540f6e (diff)
downloadpfsense-56b79a8d17dc7fb9dc3688a038c6c9f7adef6b28.zip
pfsense-56b79a8d17dc7fb9dc3688a038c6c9f7adef6b28.tar.gz
* Reset filter reload status to Done if rules are the same
* Add a note that the rules are not the same and that the filter will not be reloaded to the system logs
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 9255d46..3d6ac9a 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -234,8 +234,11 @@ function filter_configure_sync() {
$oldrules = file_get_contents("{$g['tmp_path']}/rules.debug.old");
/* Check to see if rules changed, if not do not continue */
- if($rules == $oldrules)
+ if($rules == $oldrules) {
+ update_filter_reload_status("Done");
+ log_error("Rules have not changed. Not reloading.");
return;
+ }
if(isset($config['system']['developerspew'])) {
$mt = microtime();
OpenPOWER on IntegriCloud