v2.7.12: pass 'wildname' to approveDomains()

This commit is contained in:
AJ ONeal 2019-04-06 13:48:17 -06:00
parent 8afda1184e
commit ddaebd9387
3 changed files with 3 additions and 2 deletions

View File

@ -452,6 +452,7 @@ Greenlock.create = function (gl) {
domain: domain, domains: certs && certs.altnames || [ domain ] domain: domain, domains: certs && certs.altnames || [ domain ]
, certs: certs, certificate: {}, account: {} , certs: certs, certificate: {}, account: {}
}; };
opts.wildname = '*.' + (domain||'').split('.').slice(1).join('.');
function cb2(results) { function cb2(results) {
log(gl.debug, 'gl.approveDomains called with certs for', results.certs && results.certs.altnames || 'NONE', 'and options:'); log(gl.debug, 'gl.approveDomains called with certs for', results.certs && results.certs.altnames || 'NONE', 'and options:');

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "greenlock", "name": "greenlock",
"version": "2.7.11", "version": "2.7.12",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "greenlock", "name": "greenlock",
"version": "2.7.11", "version": "2.7.12",
"description": "Let's Encrypt for node.js on npm", "description": "Let's Encrypt for node.js on npm",
"main": "index.js", "main": "index.js",
"files": [ "files": [