use challenge opts

This commit is contained in:
AJ ONeal 2016-09-13 18:27:24 -06:00
parent 853ea09a56
commit b4a17bcaff
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,9 @@ module.exports.create = function (le) {
// Certificates // Certificates
registerAsync: function (args) { registerAsync: function (args) {
var err; var err;
var copy = utils.merge(args, le); var challengeDefaults = le['_challengeOpts_' + (args.challengeType || le.challengeType)] || {};
var copy = utils.merge(args, challengeDefaults || {});
copy = utils.merge(copy, le);
args = utils.tplCopy(copy); args = utils.tplCopy(copy);
if (!Array.isArray(args.domains)) { if (!Array.isArray(args.domains)) {