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

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

View File

@ -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 # 输出分享链接
print_share_link # 输出分享链接