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

bugfix: domain match
pull/68/head
Greper 2023-10-09 16:58:36 +08:00 committed by GitHub
commit c7cfd7a8a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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