bugfix: domain match

if you have more domain like below :
aeqxiu.cn
beqxiu.cn
eqxiu.cn
then endwith will match the random domain
This commit is contained in:
Ranger
2023-10-09 16:50:02 +08:00
committed by GitHub
parent 4d3c86dba1
commit 717e50fd5c

View File

@@ -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;
}