v2.7.10: improve error handling
This commit is contained in:
parent
44ff0ac5df
commit
8f369226cf
3
index.js
3
index.js
|
@ -230,10 +230,13 @@ module.exports.create = function(opts) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
server = https.createServer(greenlock.tlsOptions, function(req, res) {
|
server = https.createServer(greenlock.tlsOptions, function(req, res) {
|
||||||
|
/*
|
||||||
|
// Don't do this yet
|
||||||
req.on("error", function(err) {
|
req.on("error", function(err) {
|
||||||
console.error("HTTPS Request Network Connection Error:");
|
console.error("HTTPS Request Network Connection Error:");
|
||||||
console.error(err);
|
console.error(err);
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
mw(req, res);
|
mw(req, res);
|
||||||
});
|
});
|
||||||
server.type = httpType;
|
server.type = httpType;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "greenlock-express",
|
"name": "greenlock-express",
|
||||||
"version": "2.7.9",
|
"version": "2.7.10",
|
||||||
"description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.",
|
"description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"homepage": "https://greenlock.domains",
|
"homepage": "https://greenlock.domains",
|
||||||
|
|
|
@ -210,6 +210,11 @@ function checkWwws(_hostname) {
|
||||||
exports.checkWwws = checkWwws;
|
exports.checkWwws = checkWwws;
|
||||||
|
|
||||||
function myVhostApp(req, res) {
|
function myVhostApp(req, res) {
|
||||||
|
req.on("error", function(err) {
|
||||||
|
console.error("HTTPS Request Network Connection Error:");
|
||||||
|
console.error(err);
|
||||||
|
});
|
||||||
|
|
||||||
// SECURITY greenlock pre-sanitizes hostnames to prevent unauthorized fs access so you don't have to
|
// SECURITY greenlock pre-sanitizes hostnames to prevent unauthorized fs access so you don't have to
|
||||||
// (also: only domains approved above will get here)
|
// (also: only domains approved above will get here)
|
||||||
console.info("");
|
console.info("");
|
||||||
|
|
Loading…
Reference in New Issue