feat(脚本): 删除bittorrent、修改jq输出方式

pull/534/merge
mack-a 2021-03-08 16:02:09 +08:00
parent c1436c0939
commit 2558d94f18
1 changed files with 4 additions and 74 deletions

View File

@ -1362,23 +1362,6 @@ initV2RayConfig() {
"loglevel": "warning"
}
}
EOF
# routing
cat <<EOF >/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 <<EOF >/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 <<EOF >${configPath}09_routing.json
{
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
}
}
EOF
rm -rf ${configPath}09_routing.json
cat <<EOF >${configPath}10_ipv4_outbounds.json
{
@ -2944,22 +2888,8 @@ EOF
# 移除任意门解锁Netflix
removeDokodemoDoorUnblockNetflix() {
rm -rf ${configPath}/*_netflix_*.json
cat <<EOF >${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 "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本"
echoContent red "=============================================================="