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
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()
}