fix: 修复从本地dns获取记录报错的bug

pull/361/head
xiaojunnuo 2025-04-04 20:46:48 +08:00
parent 298006a4b9
commit c39b1bf823
1 changed files with 1 additions and 1 deletions

View File

@ -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)