mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-19 06:32:58 +08:00
update 2026-10-17 16:12:15
This commit is contained in:
1 parent
fbf8d8b632
commit
63dbfd1d1b
167 files changed
+407
-38039
No files matched your search
@@ -2141,7 +2141,7 @@ local function curl(url, file, ua, mode, hwid)
|
||||
"-fskL", "-w %{http_code}", "--retry 3", "--connect-timeout 3", "-H 'Accept: */*'", "-H 'Accept-Encoding: identity'"
|
||||
}
|
||||
if ua and ua ~= "" and ua ~= "curl" then
|
||||
ua = (ua == "passwall2") and ("passwall2/" .. api.get_version()) or ua
|
||||
ua = (ua == "passwall2") and ("passwall2/" .. (api.get_version():match("^([^-]+)") or "")) or ua
|
||||
curl_args[#curl_args + 1] = '--user-agent "' .. ua .. '"'
|
||||
end
|
||||
if hwid == "1" then
|
||||
|
||||
Reference in new issue
Block a user