增加是否跳过证书验证逻辑
This commit is contained in:
parent
a8585916b2
commit
41d9c06bc2
@ -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" # 可根据需要修改默认值
|
||||
|
||||
Loading…
Reference in New Issue
Block a user