support init(deps)
This commit is contained in:
parent
c8b895633c
commit
fb69d25250
13
lib/core.js
13
lib/core.js
|
@ -407,6 +407,19 @@ module.exports.create = function (gl) {
|
||||||
copy.challenges[challenge.type].remove(copy, challenge.altname, challenge.token, done);
|
copy.challenges[challenge.type].remove(copy, challenge.altname, challenge.token, done);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
certReq.init = function (deps) {
|
||||||
|
var copy = utils.merge(deps, args);
|
||||||
|
copy = utils.merge(copy, gl);
|
||||||
|
utils.tplCopy(copy);
|
||||||
|
|
||||||
|
Object.keys(copy.challenges).forEach(function (key) {
|
||||||
|
if ('function' === typeof copy.challenges[key].init) {
|
||||||
|
copy.challenges[key].init(copy);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
certReq.getZones = function (challenge) {
|
certReq.getZones = function (challenge) {
|
||||||
var copy = utils.merge({ dnsHosts: args.domains.map(function (x) { return 'xxxx.' + x; }) }, args);
|
var copy = utils.merge({ dnsHosts: args.domains.map(function (x) { return 'xxxx.' + x; }) }, args);
|
||||||
copy = utils.merge(copy, gl);
|
copy = utils.merge(copy, gl);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "greenlock",
|
"name": "greenlock",
|
||||||
"version": "2.8.0",
|
"version": "2.8.1",
|
||||||
"description": "Greenlock is Let's Encrypt (ACME) client for node.js",
|
"description": "Greenlock is Let's Encrypt (ACME) client for node.js",
|
||||||
"homepage": "https://greenlock.domains/",
|
"homepage": "https://greenlock.domains/",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|
Loading…
Reference in New Issue