mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 21:55:13 +08:00
update 2026-10-04 18:21:54
This commit is contained in:
1 parent
595111c0e8
commit
c75ec11645
77 files changed
+21891
-27
No files matched your search
@@ -1776,7 +1776,7 @@ local function curl(url, file, ua, mode)
|
||||
}
|
||||
|
||||
ua = (ua and ua ~= "") and ua or "passwall"
|
||||
ua = (ua == "passwall") and ("passwall/" .. api.get_version()) or ua
|
||||
ua = (ua == "passwall") and ("passwall/" .. api.get_version():match("^([^-]+)")) or ua
|
||||
curl_args[#curl_args + 1] = '--user-agent "' .. ua .. '"'
|
||||
|
||||
local cookie_file = "/tmp/cookie_" .. api.gen_random_char(5)
|
||||
|
||||
Reference in new issue
Block a user