From 41d9c06bc2529208d546ac296e8dd94dafa555af Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Tue, 30 Dec 2025 09:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E8=AF=81=E4=B9=A6=E9=AA=8C=E8=AF=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/print_share_link.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/print_share_link.sh b/bin/print_share_link.sh index 22e619c..10a8c3a 100644 --- a/bin/print_share_link.sh +++ b/bin/print_share_link.sh @@ -27,6 +27,11 @@ print_share_link() { local password=$(echo "$config" | jq -r '.inbounds[0].users[0].password') local congestion_control=$(echo "$config" | jq -r '.inbounds[0].congestion_control') local allowInsecure=1 # 是否跳过证书验证,1表示跳过,0表示不跳过 + + # 检查是否使用ACME证书 + if jq -e '.inbounds[0].tls.acme' "$config_dir/config.json" > /dev/null 2>&;1 then + allowInsecure=0 # 不跳过证书验证 + fi # 检查sni if [ "$sni" = "你的域名或伪装域名" ] || [ -z "$sni" ] || [[ "$sni" == null ]]; then @@ -49,4 +54,4 @@ print_share_link() { echo -e "\033[0m" } -print_share_link # 输出分享链接 \ No newline at end of file +print_share_link # 输出分享链接