fix(脚本): 修改alterID不同导致无法使用的问题、修改伪装站点代码错误问题、删除level字段

pull/534/merge
mack-a 2021-01-07 11:18:26 +08:00
parent bbe251f74a
commit 7eea1bcc16
2 changed files with 7 additions and 11 deletions

View File

@ -69,7 +69,7 @@
- **中间的版本号升级意味可能不兼容之前安装的内容,如果不是追新用户或者必须升级的版本请谨慎升级。** 例如 2.2.\*不兼容2.1.\*
- **建议纯净系统**
- **如发现Nginx启动问题请先卸载掉自编译的nginx或者重新build系统**
- **如果脚本显示安装TLS成功并且想要重装或者使用不的组合请不要卸载脚本再安装如果重复多次这样的操作则会导致ip、域名被拉黑无法申请TLS。**
- **如果脚本显示安装TLS成功并且想要重装或者使用不的组合请不要卸载脚本再安装如果重复多次这样的操作则会导致ip、域名被拉黑无法申请TLS。**
## 脚本目录
- v2ray-core 【**/etc/v2ray-agent/v2ray**】

View File

@ -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 "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本"
echoContent red "=============================================================="