perf: 支持阿里云中文域名申请

This commit is contained in:
xiaojunnuo
2025-04-25 18:04:24 +08:00
parent f88c5c8528
commit b3468cf7f2
2 changed files with 165 additions and 19 deletions

View File

@@ -204,6 +204,7 @@ export class AcmeService {
const keyAuthorization = await keyAuthorizationGetter(challenge);
const mainDomain = dnsProvider.usePunyCode() ? domain : punycode.toUnicode(domain);
fullRecord = dnsProvider.usePunyCode() ? fullRecord : punycode.toUnicode(fullRecord);
const recordValue = keyAuthorization;
let hostRecord = fullRecord.replace(`${mainDomain}`, "");
if (hostRecord.endsWith(".")) {