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
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",