mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-30 21:45:23 +00:00
优化部分php环境CURLOPT_SSL_VERIFYHOST参数设置为false后,卡顿问题。
This commit is contained in:
parent
c90acbec6c
commit
4894464fdd
@ -73,7 +73,7 @@ class AutoReseed
|
||||
self::backup('config', $configALL);
|
||||
self::$curl = new Curl();
|
||||
self::$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
|
||||
#self::$curl->setOpt(CURLOPT_SSL_VERIFYHOST, 2);
|
||||
self::$curl->setOpt(CURLOPT_SSL_VERIFYHOST, 2);
|
||||
|
||||
// 合作站点自动注册鉴权
|
||||
$is_login = Oauth::login(self::$apiUrl . self::$endpoints['login']);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user