Fix certChan defaulting on consul catalog provider

This commit is contained in:
Tom Moulard 2021-09-14 17:12:12 +02:00 committed by GitHub
parent 55360c1eaf
commit a72d124551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,6 @@ func (p *Provider) SetDefaults() {
p.ExposedByDefault = true
p.DefaultRule = DefaultTemplateRule
p.ServiceName = "traefik"
p.certChan = make(chan *connectCert)
}
// Init the provider.
@ -98,6 +97,7 @@ func (p *Provider) Init() error {
}
p.defaultRuleTpl = defaultRuleTpl
p.certChan = make(chan *connectCert)
return nil
}