mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-23 09:11:06 +00:00
优化日志记录方式
This commit is contained in:
@ -618,6 +618,10 @@ class transmission extends AbstractClient
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $this->url);
|
||||
if (stripos($this->url, 'https://') === 0) {
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 禁止验证证书
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); // 不检查证书
|
||||
}
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
|
||||
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);
|
||||
|
Reference in New Issue
Block a user