mirror of https://github.com/certd/certd
fix: 修复某些情况下站点证书监控报undefined.includes的错误
parent
6f180f534c
commit
0b6618ff70
|
@ -101,7 +101,7 @@ export class SiteInfoService extends BaseService<SiteInfoEntity> {
|
|||
throw new Error('没有发现证书');
|
||||
}
|
||||
const expires = certi.valid_to;
|
||||
const allDomains = certi.subjectaltname?.replaceAll('DNS:', '').split(',');
|
||||
const allDomains = certi.subjectaltname?.replaceAll('DNS:', '').split(',') ||[];
|
||||
const mainDomain = certi.subject?.CN;
|
||||
let domains = allDomains;
|
||||
if (!allDomains.includes(mainDomain)) {
|
||||
|
|
Loading…
Reference in New Issue