mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-27 17:01:53 +08:00
update 2026-06-10 16:03:15
This commit is contained in:
parent
9a06fbe427
commit
3abc5ecbce
@ -1771,6 +1771,11 @@ function gen_config(var)
|
||||
})
|
||||
|
||||
if COMMON.default_outbound_tag then
|
||||
table.insert(route.rules, {
|
||||
action = "route",
|
||||
port_range = { "0:65535" },
|
||||
outbound = COMMON.default_outbound_tag
|
||||
})
|
||||
route.final = COMMON.default_outbound_tag
|
||||
end
|
||||
|
||||
|
||||
@ -1462,11 +1462,10 @@ function gen_config(var)
|
||||
if default_outboundTag then
|
||||
local rule = {
|
||||
_flag = "default",
|
||||
type = "field",
|
||||
outboundTag = default_outboundTag
|
||||
}
|
||||
if node.domainStrategy == "IPIfNonMatch" then
|
||||
rule.ip = { "0.0.0.0/0", "::/0" }
|
||||
rule.port = "1-65535"
|
||||
else
|
||||
rule.network = "tcp,udp"
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user