Skip to content

Commit

Permalink
all: account candidate channel
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 13, 2024
1 parent 76d2374 commit 7a9cb73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
1 change: 1 addition & 0 deletions internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
ChannelEdge = "edge"
ChannelBeta = "beta"
ChannelRelease = "release"
ChannelCandidate = "candidate"
)

// These are set by the linker. Unfortunately we cannot set constants during
Expand Down

0 comments on commit 7a9cb73

Please sign in to comment.