v2.6.5: don't allow IP addresses

Этот коммит содержится в:
AJ ONeal 2018-12-22 07:20:58 -07:00
родитель fcb3b659cd
Коммит 911d05bb24
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -393,6 +393,9 @@ Greenlock.create = function (gl) {
if (!gl.approvedDomains.length) {
throw new Error("le-sni-auto is not properly configured. Missing approveDomains(domain, certs, callback)");
}
if (!/[a-z]/i.test(lexOpts.domain)) {
throw new Error("le-sni-auto does not allow IP addresses by default");
}
if (!Array.isArray(gl.approvedDomains)) {
// The acme-v2 package uses pre-flight test challenges to

Просмотреть файл

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