fix(脚本): 修复分流查看域名错误判断

pull/1006/head
mack-a 2024-03-20 17:35:10 +08:00
parent 7383310cbe
commit bcdfb89601
1 changed files with 22 additions and 18 deletions

View File

@ -5874,7 +5874,7 @@ ipv6Routing() {
fi
fi
if [[ -n "${singBoxConfigPath}" ]]; then
if [[ -f "${singBoxConfigPath}IPv6_out_route.json" ]]; then
echoContent yellow "sing-box"
jq -r -c '.route.rules[]|select (.outbound=="IPv6_out")' "${singBoxConfigPath}IPv6_out_route.json" | jq -r
@ -5884,6 +5884,7 @@ ipv6Routing() {
else
echoContent yellow " ---> 未安装IPv6分流"
fi
fi
exit 0
elif [[ "${ipv6Status}" == "2" ]]; then
@ -6287,6 +6288,7 @@ showWireGuardDomain() {
fi
# sing-box
if [[ -n "${singBoxConfigPath}" ]]; then
if [[ -f "${singBoxConfigPath}wireguard_out_${type}_route.json" ]]; then
echoContent yellow "sing-box"
jq -r -c '.route.rules[]' "${singBoxConfigPath}wireguard_out_${type}_route.json" | jq -r
@ -6296,6 +6298,8 @@ showWireGuardDomain() {
else
echoContent yellow " ---> 未安装warp ${type}分流"
fi
fi
}
# 添加WireGuard分流
@ -8773,7 +8777,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者mack-a"
echoContent green "当前版本v3.2.31"
echoContent green "当前版本v3.2.32"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus