Skip to content

Commit

Permalink
aaaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
zxlhhyccc committed Nov 30, 2024
1 parent 91bc375 commit dca4f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ local function generate_apple(type)
end
for _, domain in ipairs(domains) do
if new_appledns and new_appledns ~= "" then
out:write(string.format("address=/%s/%s\n", domain, new_appledns))
out:write(string.format("server=/%s/%s\n", domain, new_appledns))
end
end
out:close()
Expand Down Expand Up @@ -186,8 +186,8 @@ local function update(url, file, type, file2)
if type == "apple_data" then
local apple = io.open("/tmp/ssr-update." .. type, "r")
local decode = apple:read("*a")
if decode:find("address=") then
apple:close()
if not decode:find("apple") then
decode = base64_dec(decode)
else
apple:close()
-- 写回applechina
Expand Down

0 comments on commit dca4f6a

Please sign in to comment.