skip update checking if DisableUpdateCheck is set to true
This commit is contained in:
parent
71b5bc3863
commit
e8379c9059
|
@ -393,8 +393,9 @@ func (c *Command) setupAgent(config *Config, logOutput io.Writer, inmem *metrics
|
|||
}
|
||||
c.httpServer = http
|
||||
|
||||
// Setup update checking
|
||||
if config.DisableUpdateCheck != nil && *config.DisableUpdateCheck {
|
||||
// If DisableUpdateCheck is not enabled, set up update checking
|
||||
// (DisableUpdateCheck is false by default)
|
||||
if config.DisableUpdateCheck != nil && !*config.DisableUpdateCheck {
|
||||
version := config.Version.Version
|
||||
if config.Version.VersionPrerelease != "" {
|
||||
version += fmt.Sprintf("-%s", config.Version.VersionPrerelease)
|
||||
|
|
Loading…
Reference in a new issue