From 1a8c092dc1221d64807f127dee70abe52d0c45f3 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Fri, 2 Jan 2026 18:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B7=B3=E8=BF=87=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E8=AF=81=E4=B9=A6=E5=8F=82=E6=95=B0,=20=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E5=AE=98=E6=96=B9=E4=B8=8D=E7=BB=9F=E4=B8=80=E6=A0=87?= =?UTF-8?q?=E5=87=86,=20=E6=89=80=E4=BB=A5=E6=98=AF=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/print_share_link.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/print_share_link.sh b/bin/print_share_link.sh index 4e53dfd..7709b5e 100644 --- a/bin/print_share_link.sh +++ b/bin/print_share_link.sh @@ -27,10 +27,12 @@ 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表示不跳过 + local insecure=1 # 是否允许不安全连接,1表示允许,0表示不允许 # 检查是否使用ACME证书 if jq -e '.inbounds[0].tls.acme' "$config_dir/config.json" > /dev/null 2>&1; then allowInsecure=0 # 不跳过证书验证 + insecure=0 fi # 检查sni @@ -39,7 +41,7 @@ print_share_link() { fi # 构建分享链接 - local share_link="tuic://$uuid:$password@$ipv4:$port?sni=$sni&alpn=h3&insecure=1&allowInsecure=$allowInsecure&congestion_control=bbr#Tuic节点" + local share_link="tuic://$uuid:$password@$ipv4:$port?sni=$sni&alpn=h3&insecure=1&allowInsecure=$allowInsecure&insecure=$insecure&congestion_control=bbr#Tuic节点" # 输出分享链接 echo -e "\033[32m"