luci-app-passwall: sync upstream

last commit: 4e97756cd8
This commit is contained in:
gitea-action 2024-10-09 09:00:10 +08:00
parent 26f7e285cc
commit 6964b5a8b9

View File

@ -885,7 +885,11 @@ function gen_config(var)
local outbound_tag local outbound_tag
if outbound then if outbound then
set_outbound_detour(_node, outbound, outbounds, rule_name) 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 outbound_tag = outbound.tag
end end
return outbound_tag, nil return outbound_tag, nil
@ -1022,6 +1026,7 @@ function gen_config(var)
end end
end) end)
--[[
if default_outbound_tag or default_balancer_tag then if default_outbound_tag or default_balancer_tag then
table.insert(rules, { table.insert(rules, {
type = "field", type = "field",
@ -1030,6 +1035,7 @@ function gen_config(var)
network = "tcp,udp" network = "tcp,udp"
}) })
end end
]]--
routing = { routing = {
domainStrategy = node.domainStrategy or "AsIs", domainStrategy = node.domainStrategy or "AsIs",