mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 15:13:56 +08:00
🤞 Sync 2026-10-04 14:55:43
This commit is contained in:
1 parent
d0a3b136c4
commit
d132e566f2
5 files changed
+34
-23
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