From 717e50fd5ca2c0d16d5ea1493ea6130d5ecfe228 Mon Sep 17 00:00:00 2001 From: Ranger Date: Mon, 9 Oct 2023 16:50:02 +0800 Subject: [PATCH] bugfix: domain match if you have more domain like below : aeqxiu.cn beqxiu.cn eqxiu.cn then endwith will match the random domain --- .../plugin-tencent/src/dns-provider/dnspod-dns-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/plugin-tencent/src/dns-provider/dnspod-dns-provider.ts b/packages/plugins/plugin-tencent/src/dns-provider/dnspod-dns-provider.ts index 0f55bf86..ea5935d2 100644 --- a/packages/plugins/plugin-tencent/src/dns-provider/dnspod-dns-provider.ts +++ b/packages/plugins/plugin-tencent/src/dns-provider/dnspod-dns-provider.ts @@ -103,7 +103,7 @@ export class DnspodDnsProvider implements IDnsProvider { const list = await this.getDomainList(); let domain = null; for (const item of list) { - if (_.endsWith(dnsRecord, item.name)) { + if (_.endsWith(dnsRecord, "." + item.name)) { domain = item; break; }