fix: Ensure intel data for the main SPN map is initialized before Portmaster starts an SPN connection
Related Issue Details: In some situations, SPN intel data was not fully applied. This lead to Portmaster making connections that don’t align with the intended intel preferences. https://github.com/safing/portmaster/issues/1999 https://github.com/safing/portmaster-shadow/issues/35
This commit is contained in:
@@ -135,8 +135,9 @@ func start() error {
|
|||||||
crew.EnableConnecting(publicIdentity.Hub)
|
crew.EnableConnecting(publicIdentity.Hub)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize intel.
|
// Initialize SPN intel.
|
||||||
module.mgr.Go("start", func(wc *mgr.WorkerCtx) error {
|
// Do this synchronously to ensure everything is up to date before
|
||||||
|
module.mgr.Do("start", func(wc *mgr.WorkerCtx) error {
|
||||||
if err := registerIntelUpdateHook(); err != nil {
|
if err := registerIntelUpdateHook(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user