Merge pull request #783 from safing/feature/update-defaults

Update defaults
This commit is contained in:
Daniel
2022-08-24 13:35:28 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import ( //nolint:gci,nolintlint
"os"
"github.com/safing/portbase/info"
"github.com/safing/portbase/log"
"github.com/safing/portbase/metrics"
"github.com/safing/portbase/run"
"github.com/safing/spn/conf"
@@ -21,6 +22,9 @@ func main() {
// set information
info.Set("Portmaster", "0.9.3", "AGPLv3", true)
// Set default log level.
log.SetLogLevel(log.WarningLevel)
// Configure metrics.
_ = metrics.SetNamespace("portmaster")

View File

@@ -346,7 +346,7 @@ Important: DNS Requests are only matched against domain and filter list rules, a
cfgStringArrayOptions[CfgOptionServiceEndpointsKey] = cfgOptionServiceEndpoints
// Filter list IDs
defaultFilterListsValue := []string{"TRAC", "MAL", "BAD"}
defaultFilterListsValue := []string{"TRAC", "MAL", "BAD", "UNBREAK"}
err = config.Register(&config.Option{
Name: "Filter Lists",
Key: CfgOptionFilterListsKey,