Pull request: all: imp dev version handling
Merge in DNS/adguard-home from fix-version to master Squashed commit of the following: commit ecef63315fb49ae33b4c3f13c0e0be0668340e2b Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Jan 22 18:59:17 2021 +0300 updater: imp tests commit f5243918567430e467c44a48e45169db4560b58b Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Jan 22 18:48:10 2021 +0300 all: imp dev version handling
This commit is contained in:
@@ -179,7 +179,7 @@ func initConfig() {
|
||||
config.DHCP.Conf4.ICMPTimeout = 1000
|
||||
config.DHCP.Conf6.LeaseDuration = 86400
|
||||
|
||||
if ch := version.Channel(); ch == "edge" || ch == "development" {
|
||||
if ch := version.Channel(); ch == version.ChannelEdge || ch == version.ChannelDevelopment {
|
||||
config.BetaBindPort = 3001
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,8 @@ func Main() {
|
||||
|
||||
func setupContext(args options) {
|
||||
Context.runningAsService = args.runningAsService
|
||||
Context.disableUpdate = args.disableUpdate
|
||||
Context.disableUpdate = args.disableUpdate ||
|
||||
version.Channel() == version.ChannelDevelopment
|
||||
|
||||
Context.firstRun = detectFirstRun()
|
||||
if Context.firstRun {
|
||||
|
||||
Reference in New Issue
Block a user