v2.7.11: allow null return from approveDomains

This commit is contained in:
AJ ONeal 2019-04-06 12:43:59 -06:00
parent 0cbdf53322
commit 8afda1184e
3 changed files with 9 additions and 2 deletions

View File

@ -456,6 +456,13 @@ Greenlock.create = function (gl) {
function cb2(results) {
log(gl.debug, 'gl.approveDomains called with certs for', results.certs && results.certs.altnames || 'NONE', 'and options:');
log(gl.debug, results.options);
var err;
if (!results) {
err = new Error('E_REJECT_SNI');
err.code = 'E_REJECT_SNI';
eb2(err);
return;
}
var options = results.options || results;
if (opts !== options) {

2
package-lock.json generated
View File

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

View File

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