Enable stats collection when pilot is enabled

This commit is contained in:
Michael 2020-10-30 16:54:04 +01:00 committed by GitHub
parent 05333b9579
commit af04e92cf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -224,6 +224,11 @@ func (c *Configuration) SetEffectiveConfiguration() {
}
}
// Enable anonymous usage when pilot is enabled.
if c.Pilot != nil && c.Pilot.Token != "" {
c.Global.SendAnonymousUsage = true
}
c.initACMEProvider()
}