mirror of
https://github.com/containous/traefik.git
synced 2025-01-21 18:03:50 +03:00
Check if ACME certificate resolver is not nil
This commit is contained in:
parent
4b5968e0cc
commit
ac42dd8f83
@ -40,7 +40,7 @@ func NewRouterFactory(staticConfiguration static.Configuration, managerFactory *
|
||||
) *RouterFactory {
|
||||
handlesTLSChallenge := false
|
||||
for _, resolver := range staticConfiguration.CertificatesResolvers {
|
||||
if resolver.ACME.TLSChallenge != nil {
|
||||
if resolver.ACME != nil && resolver.ACME.TLSChallenge != nil {
|
||||
handlesTLSChallenge = true
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user