mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-07-27 09:42:56 +00:00
优化https判断
This commit is contained in:
@@ -149,7 +149,7 @@ function download($url, $cookies='', $useragent='', $method = 'GET')
|
|||||||
if ($method === 'POST') {
|
if ($method === 'POST') {
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
}
|
}
|
||||||
if (stripos($url, 'https://') !== false) {
|
if (stripos($url, 'https://') === 0) {
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||||
curl_setopt($ch, CURLOPT_SSLVERSION, 1);
|
curl_setopt($ch, CURLOPT_SSLVERSION, 1);
|
||||||
|
Reference in New Issue
Block a user