Skip to content

Commit

Permalink
fix(脚本): 修复sing-box设置全局分流无法正常使用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Dec 18, 2024
1 parent 14b0ff6 commit ab4efce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ readInstallProtocolType() {
realityServerName=${xrayVLESSRealityServerName}
xrayVLESSRealityPort=$(jq -r .inbounds[0].port "${row}.json")

realityDomainPort=$(jq -r .inbounds[0].streamSettings.realitySettings.dest "${row}.json"|awk -F '[:]' '{print $2}')
realityDomainPort=$(jq -r .inbounds[0].streamSettings.realitySettings.dest "${row}.json" | awk -F '[:]' '{print $2}')

currentRealityPublicKey=$(jq -r .inbounds[0].streamSettings.realitySettings.publicKey "${row}.json")
currentRealityPrivateKey=$(jq -r .inbounds[0].streamSettings.realitySettings.privateKey "${row}.json")
Expand Down Expand Up @@ -6621,7 +6621,10 @@ ipv6Routing() {

removeSingBoxConfig IPv6_route

removeSingBoxConfig 01_direct_outbound

addSingBoxOutbound IPv6_out

fi

echoContent green " ---> IPv6全局出站设置完毕"
Expand Down Expand Up @@ -7140,10 +7143,9 @@ warpRoutingReg() {

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

removeSingBoxConfig direct

removeSingBoxConfig IPv4_out
removeSingBoxConfig IPv6_out
removeSingBoxConfig 01_direct_outbound

# 删除所有分流规则
removeSingBoxConfig wireguard_out_IPv4_route
Expand Down Expand Up @@ -7409,6 +7411,7 @@ setSocks5OutboundRoutingAll() {
removeSingBoxConfig wireguard_outbound

removeSingBoxConfig socks5_outbound_route
removeSingBoxConfig 01_direct_outbound
fi

echoContent green " ---> Socks5全局出站设置完毕"
Expand Down Expand Up @@ -9716,7 +9719,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者:mack-a"
echoContent green "当前版本:v3.3.24"
echoContent green "当前版本:v3.3.25"
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down

0 comments on commit ab4efce

Please sign in to comment.