mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-12 19:58:56 +00:00
优化部分php环境CURLOPT_SSL_VERIFYHOST参数设置为false后,卡顿问题。
This commit is contained in:
@ -82,7 +82,7 @@ class qBittorrent extends AbstractClient
|
||||
$this->api_version = $api_version;
|
||||
$this->curl = new Curl();
|
||||
$this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, false); // 禁止验证证书
|
||||
$this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, false); // 不检查证书
|
||||
$this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 2); // 不检查证书
|
||||
$this->curl->setOpt(CURLOPT_CONNECTTIMEOUT, 60); // 超时
|
||||
$this->curl->setOpt(CURLOPT_TIMEOUT, 600); // 超时
|
||||
// Authenticate and get cookie, else throw exception
|
||||
|
Reference in New Issue
Block a user