mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user