Skip to content

Commit

Permalink
Update getter fallback values in profile config
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Dec 1, 2020
1 parent 16e4508 commit 7b1a672
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions profile/config.go
Expand Up @@ -274,7 +274,7 @@ The lists are automatically updated every hour using incremental updates.
Description: "Block connections that match enabled filter lists.",
Help: filterListsHelp,
OptType: config.OptTypeStringArray,
DefaultValue: []string{"TRAC", "MAL"},
DefaultValue: []string{"TRAC", "MAL", "BAD"},
Annotations: config.Annotations{
config.DisplayHintAnnotation: "filter list",
config.DisplayOrderAnnotation: cfgOptionFilterListsOrder,
Expand Down Expand Up @@ -326,7 +326,7 @@ The lists are automatically updated every hour using incremental updates.
if err != nil {
return err
}
cfgOptionFilterSubDomains = config.Concurrent.GetAsInt(CfgOptionFilterSubDomainsKey, int64(status.SecurityLevelOff))
cfgOptionFilterSubDomains = config.Concurrent.GetAsInt(CfgOptionFilterSubDomainsKey, int64(status.SecurityLevelsAll))
cfgIntOptions[CfgOptionFilterSubDomainsKey] = cfgOptionFilterSubDomains

// Block Scope Local
Expand Down Expand Up @@ -367,7 +367,7 @@ The lists are automatically updated every hour using incremental updates.
if err != nil {
return err
}
cfgOptionBlockScopeLAN = config.Concurrent.GetAsInt(CfgOptionBlockScopeLANKey, int64(status.SecurityLevelOff))
cfgOptionBlockScopeLAN = config.Concurrent.GetAsInt(CfgOptionBlockScopeLANKey, int64(status.SecurityLevelsHighAndExtreme))
cfgIntOptions[CfgOptionBlockScopeLANKey] = cfgOptionBlockScopeLAN

// Block Scope Internet
Expand Down Expand Up @@ -407,7 +407,7 @@ The lists are automatically updated every hour using incremental updates.
if err != nil {
return err
}
cfgOptionBlockP2P = config.Concurrent.GetAsInt(CfgOptionBlockP2PKey, int64(status.SecurityLevelsAll))
cfgOptionBlockP2P = config.Concurrent.GetAsInt(CfgOptionBlockP2PKey, int64(status.SecurityLevelExtreme))
cfgIntOptions[CfgOptionBlockP2PKey] = cfgOptionBlockP2P

// Block Inbound Connections
Expand Down

0 comments on commit 7b1a672

Please sign in to comment.