fix(脚本): 修改xray-core内核下新增socks5入站后sing-box启动异常问题

pull/931/head
ryan-web-dev 2024-01-31 09:22:36 +08:00 committed by GitHub
parent 4c8c90e18e
commit 56ff217eca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -6773,7 +6773,7 @@ setSocks5InboundRouting() {
echoContent red " ---> 域名不可为空" echoContent red " ---> 域名不可为空"
exit 0 exit 0
fi fi
addSingBoxRouteRule "direct" "${socks5InboundRoutingDomain}" "socks5_inbound_route" addSingBoxRouteRule "01_direct_outbound" "${socks5InboundRoutingDomain}" "socks5_inbound_route"
local route= local route=
route=$(jq ".route.rules[0].inbound = [\"socks5_inbound\"]" "${singBoxConfigPath}socks5_inbound_route.json") route=$(jq ".route.rules[0].inbound = [\"socks5_inbound\"]" "${singBoxConfigPath}socks5_inbound_route.json")
route=$(echo "${route}" | jq ".route.rules[0].source_ip_cidr=${socks5InboundRoutingIPs}") route=$(echo "${route}" | jq ".route.rules[0].source_ip_cidr=${socks5InboundRoutingIPs}")