mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-25 03:15:10 +08:00
fix: panic on nil pointer
This commit is contained in:
@@ -29,7 +29,7 @@ func NewRestyClient() *resty.Client {
|
||||
SetHeader("user-agent", UserAgent).
|
||||
SetRetryCount(3).
|
||||
SetTimeout(DefaultTimeout)
|
||||
if conf.Conf.TlsInsecureSkipVerify {
|
||||
if conf.Conf != nil && conf.Conf.TlsInsecureSkipVerify {
|
||||
client = client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
|
||||
}
|
||||
return client
|
||||
|
||||
Reference in New Issue
Block a user