bugfix mentioned in #45 don't access a proptery that doesn't exist
Esse commit está contido em:
pai
17de9754e1
commit
020e355c74
@ -350,7 +350,7 @@ function getOrCreateDomainCertificate(args, defaults, handlers) {
|
||||
}
|
||||
|
||||
return fetchFromConfigLiveDir(args).then(function (certs) {
|
||||
var halfLife = (certs.expiresAt - certs.issuedAt) / 2;
|
||||
var halfLife = certs && ((certs.expiresAt - certs.issuedAt) / 2);
|
||||
|
||||
if (!certs || (Date.now() - certs.issuedAt) > halfLife) {
|
||||
// There is no cert available
|
||||
|
Carregando…
x
Referência em uma nova issue
Block a user