From 634a22bbb5cf70e6c02165b651177307d209da66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Mon, 18 Aug 2025 23:08:21 +0800 Subject: [PATCH] v2.6.6 v2.6.6 --- x-ui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index 0b7ab645..84a975d9 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -322,7 +322,9 @@ check_config() { if [[ -n "$existing_cert" && -n "$existing_key" ]]; then echo -e "${green}面板已安装证书采用SSL保护${plain}" echo "" - echo -e "${green}登录访问面板URL: https://你的域名:${existing_port}${green}${existing_webBasePath}${plain}" + local existing_cert=$(/usr/local/x-ui/x-ui setting -getCert true | grep -Eo 'cert: .+' | awk '{print $2}') + domain=$(basename "$(dirname "$existing_cert")") + echo -e "${green}登录访问面板URL: https://${domain}:${existing_port}${green}${existing_webBasePath}${plain}" fi echo "" if [[ -z "$existing_cert" && -z "$existing_key" ]]; then