mirror of
https://github.com/therootcompany/greenlock.js.git
synced 2024-11-16 17:29:00 +00:00
Compare commits
2 Commits
bc13451368
...
a612f4f98b
Author | SHA1 | Date | |
---|---|---|---|
a612f4f98b | |||
2abdfcc665 |
3
index.js
3
index.js
@ -557,7 +557,8 @@ Greenlock.create = function (gl) {
|
|||||||
req.headers.host = host.join(':');
|
req.headers.host = host.join(':');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gl.__sni_allow_domain_fronting) {
|
// Note: This sanitize function is also called on plain sockets, which don't need Domain Fronting checks
|
||||||
|
if (req.socket.encrypted && !gl.__sni_allow_domain_fronting) {
|
||||||
if (req.socket && 'string' === typeof req.socket.servername) {
|
if (req.socket && 'string' === typeof req.socket.servername) {
|
||||||
// Workaround for https://github.com/nodejs/node/issues/22389
|
// Workaround for https://github.com/nodejs/node/issues/22389
|
||||||
if (!gl._checkServername(safehost, req.socket.servername.toLowerCase())) {
|
if (!gl._checkServername(safehost, req.socket.servername.toLowerCase())) {
|
||||||
|
@ -28,7 +28,6 @@ function addCommunityMember(pkg, action, email, domains, communityMember) {
|
|||||||
.replace(/\//g, '_').replace(/\+/g, '-').replace(/=/g, '');
|
.replace(/\//g, '_').replace(/\+/g, '-').replace(/=/g, '');
|
||||||
}).join(',')
|
}).join(',')
|
||||||
};
|
};
|
||||||
console.log(JSON.stringify(data, 2, null));
|
|
||||||
req.write(JSON.stringify(data, 2, null));
|
req.write(JSON.stringify(data, 2, null));
|
||||||
req.end();
|
req.end();
|
||||||
}, 50);
|
}, 50);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "greenlock",
|
"name": "greenlock",
|
||||||
"version": "2.4.7",
|
"version": "2.4.8",
|
||||||
"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…
x
Reference in New Issue
Block a user