From b4a17bcaff5c9c568389dbee504a1e93b3965ab8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 13 Sep 2016 18:27:24 -0600 Subject: [PATCH] use challenge opts --- lib/core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index 969065b..4c6226d 100644 --- a/lib/core.js +++ b/lib/core.js @@ -165,7 +165,9 @@ module.exports.create = function (le) { // Certificates registerAsync: function (args) { 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); if (!Array.isArray(args.domains)) {