Merge pull request #23 from Jijun/Jijun-patch-1

bugfix: domain match
This commit is contained in:
Greper
2023-10-09 16:58:36 +08:00
committed by GitHub
@@ -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;
}