allow approveDomains to be an array or function
This commit is contained in:
parent
273f5077b7
commit
be02418d82
4
index.js
4
index.js
|
@ -169,6 +169,10 @@ LE.create = function (le) {
|
|||
}
|
||||
if (!le.httpsOptions.SNICallback) {
|
||||
if (!le.getCertificatesAsync && !le.getCertificates) {
|
||||
if (Array.isArray(le.approveDomains)) {
|
||||
le.approvedDomains = le.approveDomains;
|
||||
le.approveDomains = null;
|
||||
}
|
||||
if (!le.approveDomains) {
|
||||
le.approvedDomains = le.approvedDomains || [];
|
||||
le.approveDomains = function (lexOpts, certs, cb) {
|
||||
|
|
Loading…
Reference in New Issue