mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-11 18:19:40 +08:00
fix: timeout in alist and webdav
This commit is contained in:
@@ -71,7 +71,7 @@ func refreshToken(client *req.Client) {
|
||||
func (a *Alist) Init() {
|
||||
basePath = config.Cfg.Storage.Alist.BasePath
|
||||
baseUrl = config.Cfg.Storage.Alist.URL
|
||||
reqClient = req.C().SetTLSHandshakeTimeout(time.Second * 10).SetBaseURL(baseUrl)
|
||||
reqClient = req.C().SetTLSHandshakeTimeout(time.Second * 10).SetBaseURL(baseUrl).SetTimeout(time.Hour * 24)
|
||||
loginReq = &loginRequset{
|
||||
Username: config.Cfg.Storage.Alist.Username,
|
||||
Password: config.Cfg.Storage.Alist.Password,
|
||||
|
||||
Reference in New Issue
Block a user