fix: 修复 Tencent DNS 解析

This commit is contained in:
xream
2024-04-04 15:26:19 +08:00
parent 16b9cd9aaf
commit f1bf0e1e8d
2 changed files with 2 additions and 2 deletions

View File

@@ -490,7 +490,7 @@ const DOMAIN_RESOLVERS = {
},
});
const answers = resp.body.split(';').map((i) => i.split(',')[0]);
if (answers.length === 0) {
if (answers.length === 0 || String(answers) === '0') {
throw new Error('No answers');
}
const result = answers[answers.length - 1];