From 82de1d1d297960031588e8ddbc73ca0e910918df Mon Sep 17 00:00:00 2001 From: kenzok8 Date: Wed, 9 Oct 2024 09:24:46 +0800 Subject: [PATCH] update 2024-10-09 09:24:46 --- 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",