mirror of https://github.com/mack-a/v2ray-agent
fix(脚本): 修复sing-box warp分流问题
parent
1e94d39a2b
commit
af082db77e
23
install.sh
23
install.sh
|
@ -3217,6 +3217,18 @@ addSingBoxOutbound() {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
EOF
|
||||||
|
elif echo "${tag}" | grep -q "direct"; then
|
||||||
|
|
||||||
|
cat <<EOF >"${singBoxConfigPath}config/${tag}.json"
|
||||||
|
{
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"type": "direct",
|
||||||
|
"tag": "${tag}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat <<EOF >"${singBoxConfigPath}config/${tag}.json"
|
cat <<EOF >"${singBoxConfigPath}config/${tag}.json"
|
||||||
|
@ -6254,6 +6266,7 @@ addWireGuardRoute() {
|
||||||
# rule
|
# rule
|
||||||
addSingBoxRouteRule "wireguard_out_${type}" "${domainList}"
|
addSingBoxRouteRule "wireguard_out_${type}" "${domainList}"
|
||||||
addSingBoxOutbound "wireguard_out_${type}" "wireguard_out"
|
addSingBoxOutbound "wireguard_out_${type}" "wireguard_out"
|
||||||
|
addSingBoxOutbound direct
|
||||||
# outbound
|
# outbound
|
||||||
addSingBoxWireGuardOut
|
addSingBoxWireGuardOut
|
||||||
fi
|
fi
|
||||||
|
@ -6409,14 +6422,18 @@ EOF
|
||||||
|
|
||||||
configurationSingBoxRoute delete IPv4
|
configurationSingBoxRoute delete IPv4
|
||||||
configurationSingBoxRoute delete IPv6
|
configurationSingBoxRoute delete IPv6
|
||||||
|
|
||||||
|
removeSingBoxOutbound direct
|
||||||
|
|
||||||
removeSingBoxOutbound IPv4_out
|
removeSingBoxOutbound IPv4_out
|
||||||
removeSingBoxOutbound IPv6_out
|
removeSingBoxOutbound IPv6_out
|
||||||
|
|
||||||
|
configurationSingBoxRoute delete wireguard_out_IPv4
|
||||||
|
configurationSingBoxRoute delete wireguard_out_IPv6
|
||||||
|
|
||||||
if [[ "${type}" == "IPv4" ]]; then
|
if [[ "${type}" == "IPv4" ]]; then
|
||||||
configurationSingBoxRoute delete wireguard_out_IPv6
|
|
||||||
removeSingBoxOutbound wireguard_out_IPv6
|
removeSingBoxOutbound wireguard_out_IPv6
|
||||||
else
|
else
|
||||||
configurationSingBoxRoute delete wireguard_out_IPv4
|
|
||||||
removeSingBoxOutbound wireguard_out_IPv4
|
removeSingBoxOutbound wireguard_out_IPv4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -8453,7 +8470,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.11.21"
|
echoContent green "当前版本:v2.11.22"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue