From f1bf0e1e8da22c032183bf6b66f6352843f68432 Mon Sep 17 00:00:00 2001 From: xream Date: Thu, 4 Apr 2024 15:26:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Tencent=20DNS=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/processors/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 33c0899..8bd0acf 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.275", + "version": "2.14.276", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/processors/index.js b/backend/src/core/proxy-utils/processors/index.js index 07624b7..0e4a564 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -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];