mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 13:03:56 +08:00
update 2026-10-03 17:36:19
This commit is contained in:
1 parent
ba8090b29d
commit
7a2d332eaf
1968 files changed
+1523393
-89
No files matched your search
@@ -56,10 +56,9 @@ function geo_convert_srs(var)
|
||||
if not fs.access(output_srs_file) and bin then
|
||||
local cmd = string.format("%q -type %q -action convert -input %q -list %q -output %q -lowmem=true",
|
||||
bin, prefix, geo_path, rule_name, output_srs_file)
|
||||
sys.call(cmd)
|
||||
local status = fs.access(output_srs_file) and "success." or "failed!"
|
||||
if status == "failed!" then
|
||||
api.log(string.format(" - %s:%s 转换为srs格式:%s", prefix, rule_name, status))
|
||||
local code, out = api.exec_call(cmd)
|
||||
if code ~= 0 or not fs.access(output_srs_file) then
|
||||
api.log(string.format(" - %s:%s 转换为srs格式:%s [%s]", prefix, rule_name, "failed!", out))
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1985,7 +1984,7 @@ function gen_config(var)
|
||||
table.insert(dns.servers, {
|
||||
tag = fakedns_tag,
|
||||
type = "fakeip",
|
||||
inet4_range = "198.18.0.0/15",
|
||||
inet4_range = "198.18.0.0/16",
|
||||
inet6_range = "2001:2::/48",
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user