mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 22:57:26 +02:00
enable proxy usage for individual bridge
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -21,6 +21,7 @@ abstract class BridgeAbstract implements BridgeInterface{
|
||||
public $uri = "";
|
||||
public $description = 'No description provided';
|
||||
public $maintainer = 'No maintainer';
|
||||
public $useProxy = false;
|
||||
public $parameters = array();
|
||||
|
||||
/**
|
||||
@@ -111,7 +112,7 @@ abstract class BridgeAbstract implements BridgeInterface{
|
||||
),
|
||||
);
|
||||
|
||||
if(defined('PROXY_URL')) {
|
||||
if(defined('PROXY_URL') && $this->useProxy) {
|
||||
$contextOptions['http']['proxy'] = PROXY_URL;
|
||||
$contextOptions['http']['request_fulluri'] = true;
|
||||
|
||||
|
Reference in New Issue
Block a user