mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 17:43:56 +08:00
update 2026-06-10 16:03:15
This commit is contained in:
1 parent
9a06fbe427
commit
3abc5ecbce
2 files changed
+6
-2
No files matched your search
@@ -1771,6 +1771,11 @@ function gen_config(var)
|
|||||||
})
|
})
|
||||||
|
|
||||||
if COMMON.default_outbound_tag then
|
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
|
route.final = COMMON.default_outbound_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1462,11 +1462,10 @@ function gen_config(var)
|
|||||||
if default_outboundTag then
|
if default_outboundTag then
|
||||||
local rule = {
|
local rule = {
|
||||||
_flag = "default",
|
_flag = "default",
|
||||||
type = "field",
|
|
||||||
outboundTag = default_outboundTag
|
outboundTag = default_outboundTag
|
||||||
}
|
}
|
||||||
if node.domainStrategy == "IPIfNonMatch" then
|
if node.domainStrategy == "IPIfNonMatch" then
|
||||||
rule.ip = { "0.0.0.0/0", "::/0" }
|
rule.port = "1-65535"
|
||||||
else
|
else
|
||||||
rule.network = "tcp,udp"
|
rule.network = "tcp,udp"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user