Implemented peer review comments

This commit is contained in:
Patrick Pacher
2020-04-14 11:14:04 +02:00
parent f96f8d8d6e
commit f630df0b1f
8 changed files with 90 additions and 35 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"sync"
"github.com/safing/portmaster/intel/filterlist"
"github.com/safing/portmaster/profile/endpoints"
)
@@ -14,6 +15,7 @@ var (
cfgDefaultAction uint8
cfgEndpoints endpoints.Endpoints
cfgServiceEndpoints endpoints.Endpoints
cfgFilterLists []string
)
func registerConfigUpdater() error {
@@ -60,6 +62,12 @@ func updateGlobalConfigProfile(ctx context.Context, data interface{}) error {
lastErr = err
}
list = cfgOptionFilterLists()
cfgFilterLists, err = filterlist.ResolveListIDs(list)
if err != nil {
lastErr = err
}
// build global profile for reference
profile := &Profile{
ID: "config",