From 6964b5a8b9c825589aa01b08d8105950443d1fc3 Mon Sep 17 00:00:00 2001 From: gitea-action Date: Wed, 9 Oct 2024 09:00:10 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/4e97756cd88dd924bb06d38af4ffd69791ce79ce --- luci-app-passwall/luasrc/passwall/util_xray.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/luci-app-passwall/luasrc/passwall/util_xray.lua b/luci-app-passwall/luasrc/passwall/util_xray.lua index ae54ba0b6..4a2ef63e0 100644 --- a/luci-app-passwall/luasrc/passwall/util_xray.lua +++ b/luci-app-passwall/luasrc/passwall/util_xray.lua @@ -885,7 +885,11 @@ function gen_config(var) local outbound_tag if outbound then set_outbound_detour(_node, outbound, outbounds, rule_name) - table.insert(outbounds, outbound) + if rule_name == "default" then + table.insert(outbounds, 1, outbound) + else + table.insert(outbounds, outbound) + end outbound_tag = outbound.tag end return outbound_tag, nil @@ -1022,6 +1026,7 @@ function gen_config(var) end end) + --[[ if default_outbound_tag or default_balancer_tag then table.insert(rules, { type = "field", @@ -1030,6 +1035,7 @@ function gen_config(var) network = "tcp,udp" }) end + ]]-- routing = { domainStrategy = node.domainStrategy or "AsIs",