v2.7.11: allow null return from approveDomains
This commit is contained in:
parent
0cbdf53322
commit
8afda1184e
7
index.js
7
index.js
|
@ -456,6 +456,13 @@ Greenlock.create = function (gl) {
|
||||||
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:');
|
||||||
log(gl.debug, results.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;
|
var options = results.options || results;
|
||||||
if (opts !== options) {
|
if (opts !== options) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "greenlock",
|
"name": "greenlock",
|
||||||
"version": "2.7.10",
|
"version": "2.7.11",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "greenlock",
|
"name": "greenlock",
|
||||||
"version": "2.7.10",
|
"version": "2.7.11",
|
||||||
"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": [
|
||||||
|
|
Loading…
Reference in New Issue