diff --git a/lib/modules/tls.js b/lib/modules/tls.js index f557e2e..ece8cea 100644 --- a/lib/modules/tls.js +++ b/lib/modules/tls.js @@ -81,12 +81,13 @@ module.exports.create = function (deps, config, netHandler) { return; } - // We can't request certificates for wildcard domains, so filter any of those - // out of this list and put the domain that triggered this in the list if needed. - domains = (domains || []).filter(function (dom) { return dom[0] !== '*'; }); - if (domains.indexOf(opts.domain) < 0) { - domains.push(opts.domain); - } + // // We can't request certificates for wildcard domains, so filter any of those + // // out of this list and put the domain that triggered this in the list if needed. + // domains = (domains || []).filter(function (dom) { return dom[0] !== '*'; }); + // if (domains.indexOf(opts.domain) < 0) { + // domains.push(opts.domain); + // } + domains = [ opts.domain ]; // TODO: allow user to specify options for challenges or storage. Object.assign(opts, optsOverride, { domains: domains, agreeTos: true });