mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-12 11:27:51 +08:00
update 2026-06-04 00:28:20
This commit is contained in:
1 parent
a3dfac28a4
commit
623cdab94c
36 files changed
+468
-228
No files matched your search
@@ -1666,7 +1666,8 @@ function gen_config(var)
|
||||
invert = e.invert == "1" and true or nil
|
||||
}
|
||||
string.gsub(e.domain_list, '[^' .. "\r\n" .. ']+', function(w)
|
||||
if w:find("#") == 1 then return end
|
||||
w = api.trim(w)
|
||||
if w == "" or w:find("#") == 1 then return end
|
||||
if w:find("geosite:") == 1 then
|
||||
local _geosite = w:sub(1 + #"geosite:") --适配srs
|
||||
local t = geo_rule_set("geosite", _geosite)
|
||||
@@ -1703,7 +1704,7 @@ function gen_config(var)
|
||||
domain_table.fakedns = true
|
||||
end
|
||||
|
||||
if outboundTag then
|
||||
if outboundTag and (rule.domain or rule.domain_suffix or rule.domain_keyword or rule.domain_regex or rule.rule_set) then
|
||||
table.insert(dns_domain_rules, api.clone(domain_table))
|
||||
end
|
||||
end
|
||||
@@ -1712,7 +1713,8 @@ function gen_config(var)
|
||||
local ip_cidr = {}
|
||||
local is_private = false
|
||||
string.gsub(e.ip_list, '[^' .. "\r\n" .. ']+', function(w)
|
||||
if w:find("#") == 1 then return end
|
||||
w = api.trim(w)
|
||||
if w == "" or w:find("#") == 1 then return end
|
||||
if w:find("geoip:") == 1 then
|
||||
local _geoip = w:sub(1 + #"geoip:") --适配srs
|
||||
if _geoip == "private" then
|
||||
|
||||
Reference in new issue
Block a user