From 060e18d6770e93408fb06cb3a158aed03794db72 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 16 Aug 2021 16:57:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E8=B0=83=E6=95=B4a?= =?UTF-8?q?lpn=E7=9A=84=E9=A1=BA=E5=BA=8F=E4=BB=A5=E5=85=BC=E5=AE=B9trojan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 2bbb4b6..64c40e1 100644 --- a/install.sh +++ b/install.sh @@ -815,7 +815,7 @@ checkIP() { echoContent skyBlue "\n ---> 检查域名ip中" localIP=$(curl -s -m 2 "${domain}/ip") handleNginx stop - if [[ -z ${localIP} ]] || ! echo "${localIP}"|sed '1{s/[^(]*(//;s/).*//;q}'|grep -q '.' && ! echo "${localIP}"|sed '1{s/[^(]*(//;s/).*//;q}'|grep -q ':';then + if [[ -z ${localIP} ]] || ! echo "${localIP}"|sed '1{s/[^(]*(//;s/).*//;q}'|grep -q '\.' && ! echo "${localIP}"|sed '1{s/[^(]*(//;s/).*//;q}'|grep -q ':';then echoContent red "\n ---> 未检测到当前域名的ip" echoContent yellow " ---> 请检查域名是否书写正确" echoContent yellow " ---> 请检查域名dns解析是否正确" @@ -1843,8 +1843,8 @@ EOF "security": "tls", "tlsSettings": { "alpn": [ - "h2", - "http/1.1" + "http/1.1", + "h2" ], "certificates": [ { @@ -2268,8 +2268,8 @@ EOF "xtlsSettings": { "minVersion": "1.2", "alpn": [ - "h2", - "http/1.1" + "http/1.1", + "h2" ], "certificates": [ { @@ -4182,7 +4182,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.5.26" + echoContent green "当前版本:v2.5.27" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus