mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
firewall: no need to schedule if scheduled rule is disabled
This commit is contained in:
parent
e13de05e92
commit
e8bc3e6ce0
@ -55,7 +55,7 @@ function pf_cron()
|
||||
|
||||
if (isset($config['filter']['rule'])) {
|
||||
foreach ($config['filter']['rule'] as $rule) {
|
||||
if (!empty($rule['sched'])) {
|
||||
if (empty($rule['disabled']) && !empty($rule['sched'])) {
|
||||
$jobs[]['autocron'] = array('/usr/local/etc/rc.filter_configure', '1,16,31,46');
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user