fix: 修复CNAME时子域名级数超出限制的问题

pull/265/head
xiaojunnuo 2024-11-25 10:57:27 +08:00
parent f38b33ea39
commit 3af6d96e6e
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
param.hostRecord = hostRecord;
const cnameKey = utils.id.simpleNanoId();
param.recordValue = `${param.domain}.${cnameKey}.${cnameProvider.domain}`;
const safeDomain = param.domain.replaceAll('.', '-');
param.recordValue = `${safeDomain}.${cnameKey}.${cnameProvider.domain}`;
}
async update(param: any) {