We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alist
Dependencies
Operational
v3.16.3
189pc/189
data目录下的配置文件config.json中 "tls_insecure_skip_verify": true 但该配置在189pc和189的驱动中并未生效,代码中直接是
// 初始化请求客户端 if y.client == nil { y.client = base.NewRestyClient().SetHeaders(map[string]string{ "Accept": "application/json;charset=UTF-8", "Referer": WEB_URL, }) } if y.putClient == nil { y.putClient = base.NewRestyClient().SetTimeout(120 * time.Second) }
以及
d.client = resty.New(). SetTimeout(base.DefaultTimeout). SetRetryCount(3). SetHeader("Referer", "https://cloud.189.cn/"). SetHeader("User-Agent", base.UserAgent)
为什么没有复用
req := base.RestyClient.R()
呢?是否是因为这种场景不太容易复用基类client实例?有哪些考虑?
http://192.168.1.1:5244/@manage/storages/add
No response
The text was updated successfully, but these errors were encountered:
没记错的话,好像是189会验证cookie,复用的话会导致多用户登录时出错
Sorry, something went wrong.
e15755f
BUG:tls_insecure_skip_verify配置未生效 alist-org#4355
b20f260
我测试了一下,发现没改干净,我这边重新改了一遍,亲测可用了。 #4386
No branches or pull requests
Please make sure of the following things
alist
and not something else(such asDependencies
orOperational
).Alist Version / Alist 版本
v3.16.3
Driver used / 使用的存储驱动
189pc/189
Describe the bug / 问题描述
data目录下的配置文件config.json中
"tls_insecure_skip_verify": true
但该配置在189pc和189的驱动中并未生效,代码中直接是
以及
为什么没有复用
呢?是否是因为这种场景不太容易复用基类client实例?有哪些考虑?
Reproduction / 复现链接
http://192.168.1.1:5244/@manage/storages/add
Logs / 日志
No response
The text was updated successfully, but these errors were encountered: