mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +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();
|
||||
let domain = null;
|
||||
for (const item of list) {
|
||||
if (_.endsWith(dnsRecord, item.name)) {
|
||||
if (_.endsWith(dnsRecord, "." + item.name)) {
|
||||
domain = item;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user