增加是否跳过证书验证逻辑
This commit is contained in:
parent
a8585916b2
commit
41d9c06bc2
@ -27,6 +27,11 @@ print_share_link() {
|
|||||||
local password=$(echo "$config" | jq -r '.inbounds[0].users[0].password')
|
local password=$(echo "$config" | jq -r '.inbounds[0].users[0].password')
|
||||||
local congestion_control=$(echo "$config" | jq -r '.inbounds[0].congestion_control')
|
local congestion_control=$(echo "$config" | jq -r '.inbounds[0].congestion_control')
|
||||||
local allowInsecure=1 # 是否跳过证书验证,1表示跳过,0表示不跳过
|
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
|
# 检查sni
|
||||||
if [ "$sni" = "你的域名或伪装域名" ] || [ -z "$sni" ] || [[ "$sni" == null ]]; then
|
if [ "$sni" = "你的域名或伪装域名" ] || [ -z "$sni" ] || [[ "$sni" == null ]]; then
|
||||||
@ -49,4 +54,4 @@ print_share_link() {
|
|||||||
echo -e "\033[0m"
|
echo -e "\033[0m"
|
||||||
}
|
}
|
||||||
|
|
||||||
print_share_link # 输出分享链接
|
print_share_link # 输出分享链接
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user