diff options
| author | 2025-01-25 09:14:08 +0100 | |
|---|---|---|
| committer | 2025-01-25 09:14:08 +0100 | |
| commit | 22b74b0a5790360d81088a83addab1f98b7f7947 (patch) | |
| tree | 2b08182a24cef248ac7ec9bb45c375cb33eb2f55 /app/Services/ImportService.php | |
| parent | 68497030f988cac483a67b27b96d2ac90a54856e (diff) | |
Improve cURL proxy options (#7231)
3 is now used for CURLPROXY_HTTPS2
https://github.com/curl/curl/blob/f07612cd9ae1ec50b9bedd749171ad75203c9e7e/include/curl/curl.h#L789
Related to https://github.com/FreshRSS/FreshRSS/issues/7209
Diffstat (limited to 'app/Services/ImportService.php')
| -rw-r--r-- | app/Services/ImportService.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 00bb89229..96591053b 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -296,6 +296,9 @@ class FreshRSS_Import_Service { } if (isset($feed_elt['frss:CURLOPT_PROXYTYPE'])) { $curl_params[CURLOPT_PROXYTYPE] = (int)$feed_elt['frss:CURLOPT_PROXYTYPE']; + if ($curl_params[CURLOPT_PROXYTYPE] === 3) { // Legacy for NONE + $curl_params[CURLOPT_PROXYTYPE] = -1; + } } if (isset($feed_elt['frss:CURLOPT_USERAGENT'])) { $curl_params[CURLOPT_USERAGENT] = $feed_elt['frss:CURLOPT_USERAGENT']; |
