From 2558d94f1833499f5815c74859c9b7ac0f231081 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 8 Mar 2021 16:02:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E5=88=A0=E9=99=A4b?= =?UTF-8?q?ittorrent=E3=80=81=E4=BF=AE=E6=94=B9jq=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 78 +++--------------------------------------------------- 1 file changed, 4 insertions(+), 74 deletions(-) diff --git a/install.sh b/install.sh index aa5835c..ade3c96 100644 --- a/install.sh +++ b/install.sh @@ -1362,23 +1362,6 @@ initV2RayConfig() { "loglevel": "warning" } } -EOF - # routing - cat </etc/v2ray-agent/v2ray/conf/09_routing.json -{ - "routing":{ - "domainStrategy": "AsIs", - "rules": [ - { - "type": "field", - "protocol": [ - "bittorrent" - ], - "outboundTag": "blocked" - } - ] - } -} EOF # outbounds if [[ -n "${pingIPv6}" ]]; then @@ -1666,23 +1649,6 @@ initXrayConfig() { "loglevel": "warning" } } -EOF - # routing - cat </etc/v2ray-agent/xray/conf/09_routing.json -{ - "routing":{ - "domainStrategy": "AsIs", - "rules": [ - { - "type": "field", - "protocol": [ - "bittorrent" - ], - "outboundTag": "blocked" - } - ] - } -} EOF # outbounds @@ -2677,13 +2643,6 @@ ipv6HumanVerification() { "routing":{ "domainStrategy": "IPOnDemand", "rules": [ - { - "type": "field", - "protocol": [ - "bittorrent" - ], - "outboundTag": "blocked" - }, { "type": "field", "domain": [ @@ -2720,22 +2679,7 @@ EOF echoContent green " ---> 人机验证修改成功" elif [[ "${ipv6Status}" == "2" ]]; then - cat <${configPath}09_routing.json -{ - "routing":{ - "domainStrategy": "AsIs", - "rules": [ - { - "type": "field", - "protocol": [ - "bittorrent" - ], - "outboundTag": "blocked" - } - ] - } -} -EOF + rm -rf ${configPath}09_routing.json cat <${configPath}10_ipv4_outbounds.json { @@ -2944,22 +2888,8 @@ EOF # 移除任意门解锁Netflix removeDokodemoDoorUnblockNetflix() { rm -rf ${configPath}/*_netflix_*.json - cat <${configPath}/09_routing.json -{ - "routing":{ - "domainStrategy": "AsIs", - "rules": [ - { - "type": "field", - "protocol": [ - "bittorrent" - ], - "outboundTag": "blocked" - } - ] - } -} -EOF + rm -rf ${configPath}/09_routing.json + reloadCore echoContent green " ---> 卸载成功" } @@ -3423,7 +3353,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.3.28" + echoContent green "当前版本:v2.3.29" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:七合一共存脚本" echoContent red "=============================================================="