From 170efb217c393aa1ff2fbd0f3202b634274a99c3 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 8 Aug 2023 00:04:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BC=98=E5=8C=96r?= =?UTF-8?q?eality=E5=9F=9F=E5=90=8D=E7=99=BD=E5=AB=96=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E3=80=81reality=E5=BD=93=E4=BD=BF=E7=94=A8=E5=8F=AF=E8=A2=AB?= =?UTF-8?q?=E7=99=BD=E5=AB=96=E7=9A=84=E5=9F=9F=E5=90=8D=E6=97=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E7=A1=AE=E8=AE=A4=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 77c9725..539f09c 100644 --- a/install.sh +++ b/install.sh @@ -7602,10 +7602,14 @@ 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流量被其他人使用,退出安装。" - exit 0 + echoContent red "\n ---> 检测到使用的域名,托管在cloudflare并开启了代理,使用此类型域名可能导致VPS流量被其他人使用[不建议使用]\n" + read -r -p "是否继续 ?[y/n]" setRealityDestStatus + if [[ "${setRealityDestStatus}" != 'y' ]]; then + exit 0 + fi + echoContent yellow "\n ---> 忽略风险,继续使用" fi } @@ -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