Fix dependency graph and linter errors

This commit is contained in:
Daniel
2020-04-02 17:09:15 +02:00
parent 180f27307c
commit eec0c37101
23 changed files with 164 additions and 61 deletions

View File

@@ -12,7 +12,10 @@ import (
"github.com/safing/portbase/notifications"
)
// Default Values (changeable for testing)
var (
DefaultAPIListenAddress = "127.0.0.1:817"
dataDir string
databaseDir string
)
@@ -53,7 +56,7 @@ func globalPrep() error {
}
// set api listen address
api.SetDefaultAPIListenAddress("127.0.0.1:817")
api.SetDefaultAPIListenAddress(DefaultAPIListenAddress)
// set notification persistence
notifications.SetPersistenceBasePath("core:notifications")