mirror of
https://github.com/certd/certd.git
synced 2026-04-14 04:20:52 +08:00
fix: 修复cname记录查找bug
This commit is contained in:
@@ -144,7 +144,7 @@ export class AcmeService {
|
||||
accountKey: conf.key,
|
||||
accountUrl: conf.accountUrl,
|
||||
externalAccountBinding: this.eab,
|
||||
backoffAttempts: 15,
|
||||
backoffAttempts: 20,
|
||||
backoffMin: 5000,
|
||||
backoffMax: 10000,
|
||||
urlMapping,
|
||||
|
||||
@@ -58,7 +58,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
|
||||
if (param.domain.startsWith('*.')) {
|
||||
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) {
|
||||
return info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user