增加是否跳过证书验证逻辑

This commit is contained in:
Olia Lisa 2025-12-30 09:12:45 +08:00
parent a8585916b2
commit 41d9c06bc2

View File

@ -28,6 +28,11 @@ print_share_link() {
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
sni="bing.com" # 可根据需要修改默认值