Update On Tue Mar 19 19:28:48 CET 2024

This commit is contained in:
github-action[bot]
2024-03-19 19:28:48 +01:00
parent 557f90cf41
commit 399a12dafa
117 changed files with 1304 additions and 694 deletions
@@ -10,7 +10,7 @@ jsonc = require "luci.jsonc"
i18n = require "luci.i18n"
appname = "passwall2"
curl_args = {"-skfL", "--connect-timeout 3", "--retry 3", "-m 60"}
curl_args = { "-skfL", "--connect-timeout 3", "--retry 3" }
command_timeout = 300
OPENWRT_ARCH = nil
DISTRIB_ARCH = nil
@@ -805,7 +805,10 @@ function to_download(app_name, url, size)
end
end
local return_code, result = curl_logic(url, tmp_file, curl_args)
local _curl_args = clone(curl_args)
table.insert(_curl_args, "-m 60")
local return_code, result = curl_logic(url, tmp_file, _curl_args)
result = return_code == 0
if not result then