mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
fix: 修复从本地dns获取记录报错的bug
This commit is contained in:
@@ -98,7 +98,7 @@ export async function walkTxtRecord(recordName,deep = 0) {
|
|||||||
try {
|
try {
|
||||||
/* Default DNS resolver first */
|
/* Default DNS resolver first */
|
||||||
log('从本地DNS服务器获取TXT解析记录');
|
log('从本地DNS服务器获取TXT解析记录');
|
||||||
const res = await walkDnsChallengeRecord(recordName,null,deep);
|
const res = await walkDnsChallengeRecord(recordName,dns,deep);
|
||||||
if (res && res.length > 0) {
|
if (res && res.length > 0) {
|
||||||
for (const item of res) {
|
for (const item of res) {
|
||||||
txtRecords.push(item)
|
txtRecords.push(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user