diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua b/luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua index be93bfdf0f8..e1e417b363c 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua +++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua @@ -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() @@ -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