all: sync rc fix with master

This commit is contained in:
Ainar Garipov
2024-03-13 16:25:51 +03:00
parent 6f7bfd6c9c
commit 55fb914537
4 changed files with 12 additions and 5 deletions

View File

@@ -494,7 +494,14 @@ func initWeb(opts options, clientBuildFS fs.FS, upd *updater.Updater) (web *webA
}
}
disableUpdate := opts.disableUpdate || version.Channel() == version.ChannelDevelopment
disableUpdate := opts.disableUpdate
switch version.Channel() {
case
version.ChannelDevelopment,
version.ChannelCandidate:
disableUpdate = true
}
if disableUpdate {
log.Info("AdGuard Home updates are disabled")
}

View File

@@ -14,9 +14,10 @@ import (
// Channel constants.
const (
ChannelBeta = "beta"
ChannelCandidate = "candidate"
ChannelDevelopment = "development"
ChannelEdge = "edge"
ChannelBeta = "beta"
ChannelRelease = "release"
)