From 5f435646723b99bc644aa59cd0c62913e020d17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= <88259403+xeefei@users.noreply.github.com> Date: Wed, 23 Jul 2025 22:39:42 +0800 Subject: [PATCH] v2.6.2 v2.6.2 --- x-ui.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index 6142708d..a670ab0d 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -881,8 +881,8 @@ ssl_cert_issue_main() { } ssl_cert_issue() { - local existing_webBasePath=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'webBasePath: .+' | awk '{print $2}') - local existing_port=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'port: .+' | awk '{print $2}') + local existing_webBasePath=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'webBasePath(访问路径): .+' | awk '{print $2}') + local existing_port=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'port(端口号): .+' | awk '{print $2}') # 首先检查 acme.sh if ! command -v ~/.acme.sh/acme.sh &>/dev/null; then echo "未找到 acme.sh,将进行安装" @@ -1028,7 +1028,7 @@ ssl_cert_issue() { LOGI "已为域名设置面板路径: $domain" LOGI " - 证书文件: $webCertFile" LOGI " - 私钥文件: $webKeyFile" - echo -e "${green}访问 URL: https://${domain}:${existing_port}${existing_webBasePath}${plain}" + echo -e "${green}访问 URL: https://${domain}:${existing_port}/${existing_webBasePath}${plain}" restart else LOGE "错误:未找到域名的证书或私钥文件: $domain。" @@ -1038,8 +1038,8 @@ ssl_cert_issue() { fi } ssl_cert_issue_CF() { - local existing_webBasePath=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'webBasePath: .+' | awk '{print $2}') - local existing_port=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'port: .+' | awk '{print $2}') + local existing_webBasePath=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'webBasePath(访问路径): .+' | awk '{print $2}') + local existing_port=$(/usr/local/x-ui/x-ui setting -show true | grep -Eo 'port(端口号): .+' | awk '{print $2}') LOGI "****** 使用说明 ******" LOGI "请按照以下步骤完成操作:" LOGI "1. 准备好在 Cloudflare 注册的电子邮箱。" @@ -1168,7 +1168,7 @@ ssl_cert_issue_CF() { LOGI "已为域名设置面板路径: $CF_Domain" LOGI " - 证书文件: $webCertFile" LOGI " - 私钥文件: $webKeyFile" - echo -e "${green}访问 URL: https://${CF_Domain}:${existing_port}${existing_webBasePath}${plain}" + echo -e "${green}访问 URL: https://${CF_Domain}:${existing_port}/${existing_webBasePath}${plain}" restart else LOGE "错误:未找到域名的证书或私钥文件: $CF_Domain。"