This commit is contained in:
xiaojunnuo
2025-11-24 23:43:14 +08:00
parent b5ec04723d
commit a9606bfb4e
+4 -4
View File
@@ -41,13 +41,13 @@ export function getDirectoryUrl(opts) {
if (!list) { if (!list) {
throw new Error(`sslProvider ${sslProvider} not found`) throw new Error(`sslProvider ${sslProvider} not found`)
} }
pkType = pkType || 'rsa' let pkTypePrefix = pkType || 'rsa'
if (pkType) { if (pkType) {
pkType = pkType.toLowerCase().split("_")[0] pkTypePrefix = pkType.toLowerCase().split("_")[0]
} }
if (pkType && list[pkType]) { if (pkTypePrefix && list[pkTypePrefix]) {
return list[pkType] return list[pkTypePrefix]
} }
return list.production return list.production