fix(脚本): 修复IPv6分流问题

pull/1054/head^2
mack-a 2024-06-07 15:29:29 +08:00
parent 30c6729656
commit 9fa4b1ec95
1 changed files with 7 additions and 5 deletions

View File

@ -6207,6 +6207,8 @@ ipv6Routing() {
removeSingBoxConfig socks5_inbound_route removeSingBoxConfig socks5_inbound_route
removeSingBoxConfig IPv6_route
addSingBoxOutbound IPv6_out addSingBoxOutbound IPv6_out
fi fi
@ -6255,10 +6257,10 @@ showIPv6Routing() {
fi fi
if [[ -n "${singBoxConfigPath}" ]]; then if [[ -n "${singBoxConfigPath}" ]]; then
if [[ -f "${singBoxConfigPath}IPv6_out_route.json" ]]; then if [[ -f "${singBoxConfigPath}IPv6_route.json" ]]; then
echoContent yellow "sing-box" echoContent yellow "sing-box"
jq -r -c '.route.rules[]|select (.outbound=="IPv6_out")' "${singBoxConfigPath}IPv6_out_route.json" | jq -r jq -r -c '.route.rules[]|select (.outbound=="IPv6_out")' "${singBoxConfigPath}IPv6_route.json" | jq -r
elif [[ ! -f "${singBoxConfigPath}IPv6_out_route.json" && -f "${singBoxConfigPath}IPv6_out.json" ]]; then elif [[ ! -f "${singBoxConfigPath}IPv6_route.json" && -f "${singBoxConfigPath}IPv6_out.json" ]]; then
echoContent yellow "sing-box" echoContent yellow "sing-box"
echoContent green " ---> 已设置IPv6全局分流" echoContent green " ---> 已设置IPv6全局分流"
else else
@ -6734,7 +6736,7 @@ warpRoutingReg() {
removeSingBoxConfig wireguard_out_IPv4_route removeSingBoxConfig wireguard_out_IPv4_route
removeSingBoxConfig wireguard_out_IPv6_route removeSingBoxConfig wireguard_out_IPv6_route
removeSingBoxConfig IPv6_out_route removeSingBoxConfig IPv6_route
removeSingBoxConfig socks5_inbound_route removeSingBoxConfig socks5_inbound_route
if [[ "${type}" == "IPv4" ]]; then if [[ "${type}" == "IPv4" ]]; then
@ -9203,7 +9205,7 @@ menu() {
cd "$HOME" || exit cd "$HOME" || exit
echoContent red "\n==============================================================" echoContent red "\n=============================================================="
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v3.3.2" echoContent green "当前版本v3.3.3"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c" echoContent green "描述:八合一共存脚本\c"
showInstallStatus showInstallStatus