Fix new profiles with custom config and implement review suggestions

This commit is contained in:
Daniel
2021-02-11 14:53:33 +01:00
parent 7d6d679929
commit 9bf89c32c0
7 changed files with 108 additions and 51 deletions

View File

@@ -4,13 +4,11 @@ import (
"os"
"github.com/safing/portbase/log"
"github.com/safing/portbase/modules"
"github.com/safing/portmaster/updates"
// module dependencies
_ "github.com/safing/portmaster/core/base"
"github.com/safing/portmaster/updates"
_ "github.com/safing/portmaster/updates" // dependency of semi-dependency filterlists
)
var (
@@ -37,10 +35,11 @@ func prep() error {
}
func start() error {
updatesPath = updates.RootPath() + string(os.PathSeparator)
updatesPath = updates.RootPath()
if updatesPath != "" {
updatesPath += string(os.PathSeparator)
}
log.Warningf("profile: using updates path %s", updatesPath)
err := registerValidationDBHook()
if err != nil {