v1.5.2: fix dns-01 wildcard bug

This commit is contained in:
AJ ONeal 2019-02-04 22:30:55 -07:00
父節點 382ef3c95c
當前提交 8175a08495
共有 2 個文件被更改,包括 3 次插入2 次删除

查看文件

@ -46,7 +46,8 @@ ACME.challengeTests = {
});
}
, 'dns-01': function (me, auth) {
var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname;
// remove leading *. on wildcard domains
var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname.replace(/^\*\./, '');
return me._dig({
type: 'TXT'
, name: hostname

查看文件

@ -1,6 +1,6 @@
{
"name": "acme-v2",
"version": "1.5.1",
"version": "1.5.2",
"description": "Free SSL. A framework for building Let's Encrypt v2 clients, and other ACME v2 (draft 11) clients. Successor to le-acme-core.js",
"homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js",
"main": "node.js",