diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-08 20:56:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-08 20:56:50 +0000 |
commit | 56b79a8d17dc7fb9dc3688a038c6c9f7adef6b28 (patch) | |
tree | 0ef3182bf63e7a003b277b06afec57967e3b7fce | |
parent | 2f6f9dc381fee47735b8fdf2bcad02ca12540f6e (diff) | |
download | pfsense-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.inc | 5 |
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(); |