1
0
miroir de https://github.com/therootcompany/greenlock-express.js.git synchronisé 2024-11-16 17:28:59 +00:00

v2.7.10: improve error handling

Cette révision appartient à :
AJ ONeal 2019-06-30 21:46:38 -06:00
Parent 44ff0ac5df
révision 8f369226cf
3 fichiers modifiés avec 9 ajouts et 1 suppressions

Voir le fichier

@ -230,10 +230,13 @@ module.exports.create = function(opts) {
}
});
server = https.createServer(greenlock.tlsOptions, function(req, res) {
/*
// Don't do this yet
req.on("error", function(err) {
console.error("HTTPS Request Network Connection Error:");
console.error(err);
});
*/
mw(req, res);
});
server.type = httpType;

Voir le fichier

@ -1,6 +1,6 @@
{
"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.",
"main": "index.js",
"homepage": "https://greenlock.domains",

Voir le fichier

@ -210,6 +210,11 @@ function checkWwws(_hostname) {
exports.checkWwws = checkWwws;
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
// (also: only domains approved above will get here)
console.info("");