Commit 9dd53b06 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

missing global in filter.inc

(cherry picked from commit 65653b7c)
(cherry picked from commit 0e158f0b)
parent 95b28bb7
...@@ -320,13 +320,15 @@ function filter_pflog_start() ...@@ -320,13 +320,15 @@ function filter_pflog_start()
function filter_configure() function filter_configure()
{ {
global $config;
/* /*
* NOTE: Check here for bootup status since this should not be triggered during bootup. * NOTE: Check here for bootup status since this should not be triggered during bootup.
* The reason is that rc.bootup calls filter_configure_sync directly which does this too. * The reason is that rc.bootup calls filter_configure_sync directly which does this too.
*/ */
if (!file_exists("/var/run/booting")) { if (!file_exists("/var/run/booting")) {
configd_run('filter reload'); configd_run('filter reload');
if ( isset($config['hasync']['synchronizetoip']) && trim($config['hasync']['synchronizetoip']) != "") { if ( !empty($config['hasync']['synchronizetoip'])) {
configd_run('filter sync restart'); configd_run('filter sync restart');
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment