mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 删除bittorrent、修改jq输出方式
parent
c1436c0939
commit
2558d94f18
78
install.sh
78
install.sh
|
@ -1362,23 +1362,6 @@ initV2RayConfig() {
|
||||||
"loglevel": "warning"
|
"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
|
EOF
|
||||||
# outbounds
|
# outbounds
|
||||||
if [[ -n "${pingIPv6}" ]]; then
|
if [[ -n "${pingIPv6}" ]]; then
|
||||||
|
@ -1666,23 +1649,6 @@ initXrayConfig() {
|
||||||
"loglevel": "warning"
|
"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
|
EOF
|
||||||
|
|
||||||
# outbounds
|
# outbounds
|
||||||
|
@ -2677,13 +2643,6 @@ ipv6HumanVerification() {
|
||||||
"routing":{
|
"routing":{
|
||||||
"domainStrategy": "IPOnDemand",
|
"domainStrategy": "IPOnDemand",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"protocol": [
|
|
||||||
"bittorrent"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "field",
|
"type": "field",
|
||||||
"domain": [
|
"domain": [
|
||||||
|
@ -2720,22 +2679,7 @@ EOF
|
||||||
echoContent green " ---> 人机验证修改成功"
|
echoContent green " ---> 人机验证修改成功"
|
||||||
|
|
||||||
elif [[ "${ipv6Status}" == "2" ]]; then
|
elif [[ "${ipv6Status}" == "2" ]]; then
|
||||||
cat <<EOF >${configPath}09_routing.json
|
rm -rf ${configPath}09_routing.json
|
||||||
{
|
|
||||||
"routing":{
|
|
||||||
"domainStrategy": "AsIs",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"protocol": [
|
|
||||||
"bittorrent"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF >${configPath}10_ipv4_outbounds.json
|
cat <<EOF >${configPath}10_ipv4_outbounds.json
|
||||||
{
|
{
|
||||||
|
@ -2944,22 +2888,8 @@ EOF
|
||||||
# 移除任意门解锁Netflix
|
# 移除任意门解锁Netflix
|
||||||
removeDokodemoDoorUnblockNetflix() {
|
removeDokodemoDoorUnblockNetflix() {
|
||||||
rm -rf ${configPath}/*_netflix_*.json
|
rm -rf ${configPath}/*_netflix_*.json
|
||||||
cat <<EOF >${configPath}/09_routing.json
|
rm -rf ${configPath}/09_routing.json
|
||||||
{
|
|
||||||
"routing":{
|
|
||||||
"domainStrategy": "AsIs",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"protocol": [
|
|
||||||
"bittorrent"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
reloadCore
|
reloadCore
|
||||||
echoContent green " ---> 卸载成功"
|
echoContent green " ---> 卸载成功"
|
||||||
}
|
}
|
||||||
|
@ -3423,7 +3353,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.28"
|
echoContent green "当前版本:v2.3.29"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:七合一共存脚本"
|
echoContent green "描述:七合一共存脚本"
|
||||||
echoContent red "=============================================================="
|
echoContent red "=============================================================="
|
||||||
|
|
Loading…
Reference in New Issue