From 23b3e5c7310bd922ed36522aa342c602fe198daf Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 8 Feb 2026 00:26:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20docs=20directory=20=E4=B8=8D=E7=A8=B3?= =?UTF-8?q?=E5=AE=9A=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/acme-client/src/http.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/acme-client/src/http.js b/packages/core/acme-client/src/http.js index b63fc7ece..646692cac 100644 --- a/packages/core/acme-client/src/http.js +++ b/packages/core/acme-client/src/http.js @@ -74,8 +74,9 @@ class HttpClient { if (this.urlMapping && this.urlMapping.enabled && this.urlMapping.mappings) { // eslint-disable-next-line no-restricted-syntax for (const key in this.urlMapping.mappings) { + const value = this.urlMapping.mappings[key]; if (url.includes(key)) { - const newUrl = url.replace(key, this.urlMapping.mappings[key]); + const newUrl = url.replace(key, value); this.log(`use reverse proxy: ${newUrl}`); url = newUrl; } @@ -193,7 +194,7 @@ class HttpClient { const dir = await this.getDirectory(); if (!dir[resource]) { - throw new Error(`Unable to locate API resource URL in ACME directory: "${resource}"`); + throw new Error(`Unable to locate API resource URL in ACME directory: "${resource}",获取ACME接口地址信息失败,可能网络不稳定或该证书颁发机构服务器崩溃,目录地址:${this.directoryUrl},请测试地址是否可以正常访问并显示json格式的URL地址列表`); } return dir[resource];