Check if ACME certificate resolver is not nil
This commit is contained in:
parent
4b5968e0cc
commit
ac42dd8f83
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue