From 7eea1bcc1611487d9cc178b11d3c01399999a8ad Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Thu, 7 Jan 2021 11:18:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9al?= =?UTF-8?q?terID=E4=B8=8D=E5=90=8C=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BC=AA=E8=A3=85=E7=AB=99=E7=82=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=E3=80=81=E5=88=A0=E9=99=A4?= =?UTF-8?q?level=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- install.sh | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3f7abe7..b6fd55c 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ - **中间的版本号升级意味可能不兼容之前安装的内容,如果不是追新用户或者必须升级的版本请谨慎升级。** 例如 2.2.\*,不兼容2.1.\* - **建议纯净系统** - **如发现Nginx启动问题,请先卸载掉自编译的nginx或者重新build系统** -- **如果脚本显示安装TLS成功,并且想要重装或者使用不通的组合,请不要卸载脚本再安装,如果重复多次这样的操作则会导致ip、域名被拉黑无法申请TLS。** +- **如果脚本显示安装TLS成功,并且想要重装或者使用不同的组合,请不要卸载脚本再安装,如果重复多次这样的操作则会导致ip、域名被拉黑无法申请TLS。** ## 脚本目录 - v2ray-core 【**/etc/v2ray-agent/v2ray**】 diff --git a/install.sh b/install.sh index 9f1980a..5944c36 100644 --- a/install.sh +++ b/install.sh @@ -1716,7 +1716,6 @@ EOF "clients": [ { "id": "${uuid}", - "level": 0, "email": "${domain}_vless_ws" } ], @@ -1752,7 +1751,6 @@ EOF "clients": [ { "id": "${uuid}", - "level": 0, "alterId": 1, "email": "${domain}_vmess_tcp" } @@ -1796,7 +1794,6 @@ EOF "id": "${uuid}", "alterId": 1, "add": "${add}", - "level": 0, "email": "${domain}_vmess_ws" } ] @@ -2035,7 +2032,6 @@ EOF "clients": [ { "id": "${uuid}", - "level": 0, "email": "${domain}_vless_ws" } ], @@ -2071,7 +2067,6 @@ EOF "clients": [ { "id": "${uuid}", - "level": 0, "alterId": 1, "email": "${domain}_vmess_tcp" } @@ -2115,7 +2110,6 @@ EOF "id": "${uuid}", "alterId": 1, "add": "${add}", - "level": 0, "email": "${domain}_vmess_ws" } ] @@ -2407,6 +2401,7 @@ showAccounts(){ updateNginxBlog(){ echoContent skyBlue "\n进度 $1/${totalProgress} : 更换伪装站点" echoContent red "==============================================================" + echoContent yellow "# 如需自定义,请手动复制模版文件到 /usr/share/nginx/html \n" echoContent yellow "1.数据统计模版" echoContent yellow "2.下雪动画用户注册登录模版" echoContent yellow "3.物流大数据服务平台模版" @@ -2419,10 +2414,11 @@ updateNginxBlog(){ rm -rf /usr/share/nginx/html if [[ ! -z `wget --help|grep show-progress` ]] then - wget -q -q --show-progress -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html${selectInstallNginxBlogType}.zip > /dev/null + wget -c -q --show-progress -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html${selectInstallNginxBlogType}.zip > /dev/null else - wget -c -P /etc/v2ray-agent/v2ray/ https://github.com/v2fly/v2ray-core/releases/download/${version}/v2ray-linux-64.zip > /dev/null 2>&1 + wget -c -P --show-progress -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html${selectInstallNginxBlogType}.zip > /dev/null fi + unzip -o /usr/share/nginx/html${selectInstallNginxBlogType}.zip -d /usr/share/nginx/html > /dev/null rm -f /usr/share/nginx/html${selectInstallNginxBlogType}.zip* echoContent green " ---> 更换伪装博客成功" @@ -2697,7 +2693,7 @@ addUser(){ echo ${vlessTcpResult} | jq . > ${configPath}02_VLESS_TCP_inbounds.json fi - users=`echo ${users}|sed 's/"flow":"xtls-rprx-direct",//g'` + users=`echo ${users}|sed 's/"flow":"xtls-rprx-direct",/"alterId":1,/g'` if [[ ! -z `echo ${currentInstallProtocolType} | grep 1` ]] then @@ -3309,7 +3305,7 @@ menu(){ cd echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.2.17" + echoContent green "当前版本:v2.2.18" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:七合一共存脚本" echoContent red "=============================================================="