mirror of https://github.com/certd/certd
fix: 修复cname记录查找bug
parent
818015d24a
commit
95fb4e3e8b
|
@ -144,7 +144,7 @@ export class AcmeService {
|
||||||
accountKey: conf.key,
|
accountKey: conf.key,
|
||||||
accountUrl: conf.accountUrl,
|
accountUrl: conf.accountUrl,
|
||||||
externalAccountBinding: this.eab,
|
externalAccountBinding: this.eab,
|
||||||
backoffAttempts: 15,
|
backoffAttempts: 20,
|
||||||
backoffMin: 5000,
|
backoffMin: 5000,
|
||||||
backoffMax: 10000,
|
backoffMax: 10000,
|
||||||
urlMapping,
|
urlMapping,
|
||||||
|
|
|
@ -58,7 +58,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
|
||||||
if (param.domain.startsWith('*.')) {
|
if (param.domain.startsWith('*.')) {
|
||||||
param.domain = param.domain.substring(2);
|
param.domain = param.domain.substring(2);
|
||||||
}
|
}
|
||||||
const info = await this.getRepository().findOne({ where: { domain: param.domain } });
|
const info = await this.getRepository().findOne({ where: { domain: param.domain,userId: param.userId } });
|
||||||
if (info) {
|
if (info) {
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue