fix: 修复旧版本升级上来报错eab授权的bug

v2-dev
xiaojunnuo 2025-09-17 13:25:08 +08:00
parent 4b90972341
commit b76f2e2008
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
async onInit() {
let eab: EabAccess = null;
if (this.sslProvider !== "letsencrypt") {
if (this.sslProvider && this.sslProvider !== "letsencrypt") {
if (this.sslProvider === "google" && this.googleAccessId) {
this.logger.info("当前正在使用 google服务账号授权获取EAB");
const googleAccess = await this.getAccess(this.googleAccessId);