Skip to content

Commit

Permalink
luci: default preproxy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacalini authored Oct 10, 2024
1 parent 6830c6a commit 40f53ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion luci-app-passwall2/luasrc/passwall2/util_xray.lua
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,11 @@ function gen_config(var)
local outbound = gen_outbound(flag, _node, rule_name, proxy_table)
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
rule_outboundTag = rule_name
end
end
Expand Down

0 comments on commit 40f53ea

Please sign in to comment.