fix(脚本): 修改启用任意门后导致无法访问节点的bug

pull/534/merge
mack-a 2021-03-04 21:48:38 +08:00
parent 57943c9528
commit 2f611734bd
2 changed files with 6 additions and 4 deletions

View File

@ -39,7 +39,7 @@
- 支持Debian、Ubuntu、Centos支持主流的cpu架构。**不建议使用Centos以及低版本的系统2.3.x后不再支持Centos6** - 支持Debian、Ubuntu、Centos支持主流的cpu架构。**不建议使用Centos以及低版本的系统2.3.x后不再支持Centos6**
- 支持个性化安装 - 支持个性化安装
- 支持多用户管理 - 支持多用户管理
- 支持Netflix检测、支持DNS流媒体解锁 - 支持Netflix检测、支持DNS流媒体解锁、支持任意门解锁Netflix
- 无需卸载即可安装、重装任意组合。卸载脚本时无多余文件残留 - 无需卸载即可安装、重装任意组合。卸载脚本时无多余文件残留
- 支持纯IPv6[IPv6注意事项](https://github.com/mack-a/v2ray-agent/blob/master/documents/IPv6_help.md) - 支持纯IPv6[IPv6注意事项](https://github.com/mack-a/v2ray-agent/blob/master/documents/IPv6_help.md)
- 支持利用IPv6排除Google的人机验证**需自己申请IPv6隧道不建议使用自带的IPv6** - 支持利用IPv6排除Google的人机验证**需自己申请IPv6隧道不建议使用自带的IPv6**

View File

@ -1450,6 +1450,7 @@ EOF
"port": 31297, "port": 31297,
"listen": "127.0.0.1", "listen": "127.0.0.1",
"protocol": "vless", "protocol": "vless",
"tag":"VLESSWS",
"settings": { "settings": {
"clients": [ "clients": [
{ {
@ -1755,6 +1756,7 @@ EOF
"port": 31297, "port": 31297,
"listen": "127.0.0.1", "listen": "127.0.0.1",
"protocol": "vless", "protocol": "vless",
"tag":"VLESSWS",
"settings": { "settings": {
"clients": [ "clients": [
{ {
@ -2870,7 +2872,7 @@ EOF
setDokodemoDoorUnblockNetflixInbounds() { setDokodemoDoorUnblockNetflixInbounds() {
read -r -p "请输入允许访问该解锁Netflix vps的IP:" setIP read -r -p "请输入允许访问该解锁Netflix vps的IP:" setIP
if [[ -n "${setIP}" ]]; then if [[ -n "${setIP}" ]]; then
cat <<EOF >${configPath}/10_netflix_inbounds.json cat <<EOF >${configPath}/01_netflix_inbounds.json
{ {
"inbounds": [ "inbounds": [
{ {
@ -2940,7 +2942,7 @@ EOF
# 移除任意门解锁Netflix # 移除任意门解锁Netflix
removeDokodemoDoorUnblockNetflix() { removeDokodemoDoorUnblockNetflix() {
rm -rf ${configPath}/10_netflix_*.json rm -rf ${configPath}/*_netflix_*.json
cat <<EOF >${configPath}/09_routing.json cat <<EOF >${configPath}/09_routing.json
{ {
"routing":{ "routing":{
@ -3421,7 +3423,7 @@ menu() {
cd "$HOME" || exit cd "$HOME" || exit
echoContent red "\n==============================================================" echoContent red "\n=============================================================="
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v2.3.25" echoContent green "当前版本v2.3.26"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本" echoContent green "描述:七合一共存脚本"
echoContent red "==============================================================" echoContent red "=============================================================="