mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 优化reality域名白嫖检测、reality当使用可被白嫖的域名时增加是否确认使用
parent
77de6c257a
commit
170efb217c
10
install.sh
10
install.sh
|
@ -7602,11 +7602,15 @@ initRealityKey() {
|
|||
# 检查reality域名是否符合
|
||||
checkRealityDest() {
|
||||
local traceResult=
|
||||
traceResult=$(curl -s "https://$(echo "${realityDestDomain}" | cut -d ':' -f 1)/cdn-cgi/trace" | grep "h=")
|
||||
traceResult=$(curl -s "https://$(echo "${realityDestDomain}" | cut -d ':' -f 1)/cdn-cgi/trace" | grep "visit_scheme=https")
|
||||
if [[ -n "${traceResult}" ]]; then
|
||||
echoContent red "\n ---> 无法使用托管在cloudflare并开启代理的域名,使用此类型域名可能导致VPS流量被其他人使用,退出安装。"
|
||||
echoContent red "\n ---> 检测到使用的域名,托管在cloudflare并开启了代理,使用此类型域名可能导致VPS流量被其他人使用[不建议使用]\n"
|
||||
read -r -p "是否继续 ?[y/n]" setRealityDestStatus
|
||||
if [[ "${setRealityDestStatus}" != 'y' ]]; then
|
||||
exit 0
|
||||
fi
|
||||
echoContent yellow "\n ---> 忽略风险,继续使用"
|
||||
fi
|
||||
}
|
||||
|
||||
# 初始化reality dest
|
||||
|
@ -7888,7 +7892,7 @@ menu() {
|
|||
cd "$HOME" || exit
|
||||
echoContent red "\n=============================================================="
|
||||
echoContent green "作者:mack-a"
|
||||
echoContent green "当前版本:v2.10.8"
|
||||
echoContent green "当前版本:v2.10.9"
|
||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||
echoContent green "描述:八合一共存脚本\c"
|
||||
showInstallStatus
|
||||
|
|
Loading…
Reference in New Issue