🎨 Sync 2026-08-09 00:31:16

This commit is contained in:
github-actions[bot]
2026-08-09 00:31:16 +08:00
parent d879732de0
commit d561df80a2
117 changed files with 5152 additions and 2651 deletions
@@ -1594,11 +1594,15 @@ function gen_config(var)
[".name"] = "GFW_Mode_List",
remarks = "GFW_Mode_List",
domain_list = (domain_list ~= "") and domain_list or nil,
ip_list = (ip_list ~= "") and ip_list or nil
ip_list = (ip_list ~= "") and ip_list or nil,
group = node["shunt_group"]
})
end
end
foreach_shunt_rule(function(e)
if node["shunt_group"] ~= e.group then
return
end
local outboundTag = gen_shunt_node(e[".name"])
if outboundTag and e.remarks then
if outboundTag == "default" then
@@ -1993,17 +1997,6 @@ function gen_config(var)
else default_dns_flag = "direct"
end
end
if default_dns_flag == "remote" then
if remote_dns_fake then
table.insert(dns.rules, {
query_type = { "A", "AAAA" },
server = fakedns_tag,
disable_cache = true,
rewrite_ttl = 30,
strategy = remote_strategy
})
end
end
dns.final = default_dns_flag
--按分流顺序DNS
@@ -2058,6 +2051,28 @@ function gen_config(var)
end
end
end
if default_dns_flag == "remote" then
if remote_dns_fake then
-- When default is not direct and enable fakedns, default DNS use FakeDNS.
local fakedns_dns_rule = {
query_type = {
"A", "AAAA"
},
server = fakedns_tag,
disable_cache = true,
rewrite_ttl = 30,
strategy = remote_strategy,
}
table.insert(dns.rules, fakedns_dns_rule)
else
local remote_dns_rule = {
server = "remote",
disable_cache = true,
strategy = remote_strategy,
}
table.insert(dns.rules, remote_dns_rule)
end
end
local dns_in_inbound = {
type = "direct",
tag = "dns-in",