mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-06 03:14:12 +08:00
🦄 Sync 2026-07-04 08:36:24
This commit is contained in:
1 parent
a524ec1eaf
commit
37d8256bc3
18 files changed
+690
-546
No files matched your search
@@ -43,7 +43,7 @@ local excluded_domain = {
|
||||
local mydnsip = '127.0.0.1'
|
||||
local mydnsport = '5335'
|
||||
local ipsetname = 'gfwlist'
|
||||
local new_appledns = uci:get_first("shadowsocksr", "global", "apple_dns")
|
||||
local new_appledns = uci:get_first("shadowsocksr", "global", "apple_dns", "")
|
||||
local bc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
||||
-- base64decoding
|
||||
local function base64_dec(data)
|
||||
@@ -111,10 +111,10 @@ local function generate_apple(type)
|
||||
end
|
||||
end
|
||||
end
|
||||
for _, domain in ipairs(domains) do
|
||||
if new_appledns and new_appledns ~= "" then
|
||||
out:write(string.format("server=/%s/%s\n", domain, new_appledns))
|
||||
end
|
||||
if new_appledns and new_appledns ~= "" then
|
||||
for _, domain in ipairs(domains) do
|
||||
out:write(string.format("server=/%s/%s\n", domain, new_appledns))
|
||||
end
|
||||
end
|
||||
out:close()
|
||||
os.remove("/tmp/ssr-update.tmp")
|
||||
@@ -180,6 +180,8 @@ local function update(url, file, type, file2)
|
||||
apple:close()
|
||||
if new_appledns and new_appledns ~= "" then
|
||||
generate_apple(type)
|
||||
else
|
||||
os.remove("/tmp/ssr-update.tmp")
|
||||
end
|
||||
end
|
||||
if type == "ad_data" then
|
||||
|
||||
Reference in new issue
Block a user