mirror of https://github.com/certd/certd
bugfix: domain match
if you have more domain like below : aeqxiu.cn beqxiu.cn eqxiu.cn then endwith will match the random domainpull/23/head
parent
4d3c86dba1
commit
717e50fd5c
|
@ -103,7 +103,7 @@ export class DnspodDnsProvider implements IDnsProvider {
|
||||||
const list = await this.getDomainList();
|
const list = await this.getDomainList();
|
||||||
let domain = null;
|
let domain = null;
|
||||||
for (const item of list) {
|
for (const item of list) {
|
||||||
if (_.endsWith(dnsRecord, item.name)) {
|
if (_.endsWith(dnsRecord, "." + item.name)) {
|
||||||
domain = item;
|
domain = item;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue