From 64d68a691c031a235631589e8af2f3dc6c7eddf3 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 8 Feb 2023 17:52:51 +0100 Subject: Fix disabling proxy (#5082) #fix https://github.com/FreshRSS/FreshRSS/issues/5081 Allow disabling curl proxy for specific feed, when proxy is defined globally --- app/Controllers/feedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controllers/feedController.php') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 3ef3af67d..2bef85f0e 100644 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -172,7 +172,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $proxy_address = Minz_Request::param('curl_params', ''); $proxy_type = Minz_Request::param('proxy_type', ''); $opts = []; - if ($proxy_address !== '' && $proxy_type !== '' && in_array($proxy_type, [0, 2, 4, 5, 6, 7])) { + if ($proxy_type !== '') { $opts[CURLOPT_PROXY] = $proxy_address; $opts[CURLOPT_PROXYTYPE] = intval($proxy_type); } -- cgit v1.2.3