luci: fix maybe triggered bug
This commit is contained in:
parent
aaeee88107
commit
f7459f4f17
@ -1068,7 +1068,7 @@ function gen_config(var)
|
|||||||
rule.geosite = #domain_table.geosite > 0 and domain_table.geosite or nil
|
rule.geosite = #domain_table.geosite > 0 and domain_table.geosite or nil
|
||||||
|
|
||||||
if outboundTag and outboundTag ~= "nil" then
|
if outboundTag and outboundTag ~= "nil" then
|
||||||
table.insert(dns_domain_rules, domain_table)
|
table.insert(dns_domain_rules, api.clone(domain_table))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1236,7 +1236,7 @@ function gen_config(var)
|
|||||||
table.insert(domain, w)
|
table.insert(domain, w)
|
||||||
end)
|
end)
|
||||||
if #domain > 0 then
|
if #domain > 0 then
|
||||||
table.insert(dns_domain_rules, {
|
table.insert(dns_domain_rules, 1, {
|
||||||
outboundTag = "direct",
|
outboundTag = "direct",
|
||||||
domain = domain
|
domain = domain
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user