Skip to content

Commit

Permalink
Update internal profile settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Aug 11, 2023
1 parent 9182063 commit 58c4b44
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions profile/special.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ func createSpecialProfile(profileID string, path string) *Profile {
// attributed to a connection of a regular process. Otherwise, users
// would see two connection prompts for the same domain.
CfgOptionDefaultActionKey: DefaultActionPermitValue,
// Explicitly allow incoming connections.
CfgOptionBlockInboundKey: status.SecurityLevelOff,
// Disable force blockers.
CfgOptionBlockScopeInternetKey: status.SecurityLevelOff,
CfgOptionBlockScopeLANKey: status.SecurityLevelOff,
CfgOptionBlockScopeLocalKey: status.SecurityLevelOff,
CfgOptionBlockP2PKey: status.SecurityLevelOff,
CfgOptionBlockInboundKey: status.SecurityLevelOff,
// Explicitly allow localhost and answers to multicast protocols that
// are commonly used by system resolvers.
// TODO: When the Portmaster gains the ability to attribute multicast
Expand Down Expand Up @@ -233,7 +237,12 @@ func createSpecialProfile(profileID string, path string) *Profile {
Source: SourceLocal,
PresentationPath: path,
Config: map[string]interface{}{
CfgOptionDefaultActionKey: DefaultActionBlockValue,
CfgOptionDefaultActionKey: DefaultActionBlockValue,
CfgOptionBlockScopeInternetKey: status.SecurityLevelOff,
CfgOptionBlockScopeLANKey: status.SecurityLevelOff,
CfgOptionBlockScopeLocalKey: status.SecurityLevelOff,
CfgOptionBlockP2PKey: status.SecurityLevelOff,
CfgOptionBlockInboundKey: status.SecurityLevelsAll,
CfgOptionEndpointsKey: []string{
"+ Localhost",
"+ .safing.io",
Expand All @@ -248,7 +257,12 @@ func createSpecialProfile(profileID string, path string) *Profile {
Source: SourceLocal,
PresentationPath: path,
Config: map[string]interface{}{
CfgOptionDefaultActionKey: DefaultActionBlockValue,
CfgOptionDefaultActionKey: DefaultActionBlockValue,
CfgOptionBlockScopeInternetKey: status.SecurityLevelOff,
CfgOptionBlockScopeLANKey: status.SecurityLevelOff,
CfgOptionBlockScopeLocalKey: status.SecurityLevelOff,
CfgOptionBlockP2PKey: status.SecurityLevelOff,
CfgOptionBlockInboundKey: status.SecurityLevelsAll,
CfgOptionEndpointsKey: []string{
"+ Localhost",
},
Expand Down Expand Up @@ -281,11 +295,11 @@ func specialProfileNeedsReset(profile *Profile) bool {

switch profile.ID {
case SystemResolverProfileID:
return canBeUpgraded(profile, "21.10.2022")
return canBeUpgraded(profile, "12.8.2023") // FIXME: set one day after stable release date.
case PortmasterProfileID:
return canBeUpgraded(profile, "21.10.2022")
return canBeUpgraded(profile, "12.8.2023") // FIXME: set one day after stable release date.
case PortmasterAppProfileID:
return canBeUpgraded(profile, "8.9.2021")
return canBeUpgraded(profile, "12.8.2023") // FIXME: set one day after stable release date.
default:
// Not a special profile or no upgrade available yet.
return false
Expand Down

0 comments on commit 58c4b44

Please sign in to comment.