mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
muve register event hook frop prep to start
This commit is contained in:
parent
cf30014e9d
commit
1e79fedf9b
1 changed files with 4 additions and 4 deletions
|
@ -44,6 +44,10 @@ func prep() error {
|
|||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func start() error {
|
||||
// register to hook to update after config change.
|
||||
if err := module.RegisterEventHook(
|
||||
configModuleName,
|
||||
|
@ -57,10 +61,6 @@ func prep() error {
|
|||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func start() error {
|
||||
// register timer to run every periodically and check for file updates
|
||||
module.NewTask("intel/customlists file update check", func(context.Context, *modules.Task) error {
|
||||
_ = checkAndUpdateFilterList()
|
||||
|
|
Loading…
Add table
Reference in a new issue