mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Start with same verification config on all channels
This commit is contained in:
parent
d89e988494
commit
0bb26c697f
3 changed files with 2 additions and 12 deletions
|
@ -34,7 +34,7 @@ var (
|
||||||
UpdateURLs: []string{
|
UpdateURLs: []string{
|
||||||
"https://updates.safing.io",
|
"https://updates.safing.io",
|
||||||
},
|
},
|
||||||
Verification: helper.VerificationConfig, // FIXME: disable for now
|
Verification: helper.VerificationConfig,
|
||||||
DevMode: false,
|
DevMode: false,
|
||||||
Online: true, // is disabled later based on command
|
Online: true, // is disabled later based on command
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,16 +28,6 @@ var (
|
||||||
BinarySigningTrustStore = jess.NewMemTrustStore()
|
BinarySigningTrustStore = jess.NewMemTrustStore()
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetVerificationConfig returns the verification options based on the release channel.
|
|
||||||
func GetVerificationConfig(releaseChannel string) map[string]*updater.VerificationOptions {
|
|
||||||
switch releaseChannel {
|
|
||||||
case ReleaseChannelBeta, ReleaseChannelStaging:
|
|
||||||
return VerificationConfig
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
for _, signingKey := range BinarySigningKeys {
|
for _, signingKey := range BinarySigningKeys {
|
||||||
rcpt, err := jess.RecipientFromTextFormat(signingKey)
|
rcpt, err := jess.RecipientFromTextFormat(signingKey)
|
||||||
|
|
|
@ -111,7 +111,7 @@ func start() error {
|
||||||
UserAgent: UserAgent,
|
UserAgent: UserAgent,
|
||||||
MandatoryUpdates: helper.MandatoryUpdates(),
|
MandatoryUpdates: helper.MandatoryUpdates(),
|
||||||
AutoUnpack: helper.AutoUnpackUpdates(),
|
AutoUnpack: helper.AutoUnpackUpdates(),
|
||||||
Verification: helper.GetVerificationConfig(initialReleaseChannel),
|
Verification: helper.VerificationConfig,
|
||||||
DevMode: devMode(),
|
DevMode: devMode(),
|
||||||
Online: true,
|
Online: true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue