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:
Alexandr Stelnykovych
2025-09-02 18:24:50 +03:00
parent f7a8133f81
commit d67c8e9a04

View File

@@ -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
} }