Skip to content

Commit

Permalink
fix(脚本): 修复xray-core全局分流不生效问题、修复sing-box屏蔽大陆域名后GooglePlay无法下载问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizard89 committed Feb 23, 2024
1 parent 0e9b609 commit c214799
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3250,6 +3250,7 @@ addSingBoxRouteRule() {
}
}
EOF
jq 'if .route.rule_set == [] then del(.route.rule_set) else . end' "${singBoxConfigPath}${routingName}.json" >"${singBoxConfigPath}${routingName}_tmp.json" && mv "${singBoxConfigPath}${routingName}_tmp.json" "${singBoxConfigPath}${routingName}.json"
fi

}
Expand Down Expand Up @@ -5898,7 +5899,7 @@ ipv6Routing() {
if [[ "${coreInstallType}" == "1" ]]; then
addXrayOutbound IPv6_out
removeXrayOutbound IPv4_out
removeXrayOutbound direct
removeXrayOutbound z_direct_outbound
removeXrayOutbound blackhole_out
removeXrayOutbound wireguard_out_IPv4
removeXrayOutbound wireguard_out_IPv6
Expand Down Expand Up @@ -6074,7 +6075,11 @@ blacklist() {
fi

if [[ -n "${singBoxConfigPath}" ]]; then

addSingBoxRouteRule "cn_block_outbound" "cn" "cn_block_route"

addSingBoxRouteRule "01_direct_outbound" "googleapis.com,googleapis.cn,xn--ngstr-lra8j.com,gstatic.com" "cn_01_google_play_route"

addSingBoxOutbound "cn_block_outbound"
addSingBoxOutbound "01_direct_outbound"
fi
Expand All @@ -6090,6 +6095,8 @@ blacklist() {
removeSingBoxConfig "cn_block_route"
removeSingBoxConfig "cn_block_outbound"

removeSingBoxConfig "cn_01_google_play_route"

removeSingBoxConfig "block_domain_route"
removeSingBoxConfig "block_domain_outbound"
fi
Expand Down Expand Up @@ -6379,7 +6386,7 @@ warpRoutingReg() {

removeXrayOutbound IPv4_out
removeXrayOutbound IPv6_out
removeXrayOutbound direct
removeXrayOutbound z_direct_outbound
removeXrayOutbound blackhole_out

rm ${configPath}09_routing.json >/dev/null 2>&1
Expand Down Expand Up @@ -6620,7 +6627,7 @@ setSocks5OutboundRoutingAll() {
if [[ "${coreInstallType}" == "1" ]]; then
removeXrayOutbound IPv4_out
removeXrayOutbound IPv6_out
removeXrayOutbound direct
removeXrayOutbound z_direct_outbound
removeXrayOutbound blackhole_out

rm ${configPath}09_routing.json >/dev/null 2>&1
Expand Down Expand Up @@ -8768,7 +8775,7 @@ menu() {
echoContent red "\n=============================================================="
echoContent green "原作者:mack-a"
echoContent green "作者:Wizard89"
echoContent green "当前版本:v3.0.11"
echoContent green "当前版本:v3.0.12"
echoContent green "Github:https://github.com/Wizard89/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down

0 comments on commit c214799

Please sign in to comment.