mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 09:03:56 +08:00
update 2026-06-04 16:15:35
This commit is contained in:
1 parent
4673a64a84
commit
6b1b86b56f
4 files changed
+22
No files matched your search
@@ -1762,6 +1762,12 @@ function gen_config(var)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.insert(route.rules, {
|
||||||
|
action = "route",
|
||||||
|
ip_is_private = true,
|
||||||
|
outbound = "direct"
|
||||||
|
})
|
||||||
|
|
||||||
if COMMON.default_outbound_tag then
|
if COMMON.default_outbound_tag then
|
||||||
route.final = COMMON.default_outbound_tag
|
route.final = COMMON.default_outbound_tag
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1482,6 +1482,11 @@ function gen_config(var)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
table.insert(rules, {
|
||||||
|
outboundTag = "direct",
|
||||||
|
ip = { "geoip:private" }
|
||||||
|
})
|
||||||
|
|
||||||
if default_outboundTag then
|
if default_outboundTag then
|
||||||
local rule = {
|
local rule = {
|
||||||
_flag = "default",
|
_flag = "default",
|
||||||
|
|||||||
@@ -1797,6 +1797,12 @@ function gen_config(var)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.insert(route.rules, {
|
||||||
|
action = "route",
|
||||||
|
ip_is_private = true,
|
||||||
|
outbound = "direct"
|
||||||
|
})
|
||||||
|
|
||||||
if COMMON.default_outbound_tag then
|
if COMMON.default_outbound_tag then
|
||||||
route.final = COMMON.default_outbound_tag
|
route.final = COMMON.default_outbound_tag
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1518,6 +1518,11 @@ function gen_config(var)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
table.insert(rules, {
|
||||||
|
outboundTag = "direct",
|
||||||
|
ip = { "geoip:private" }
|
||||||
|
})
|
||||||
|
|
||||||
if default_outboundTag then
|
if default_outboundTag then
|
||||||
local rule = {
|
local rule = {
|
||||||
ruleTag = "default",
|
ruleTag = "default",
|
||||||
|
|||||||
Reference in new issue
Block a user