enable proxy usage for individual bridge
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
b43e8ef689
commit
3dd63ab6fd
3 changed files with 24 additions and 7 deletions
lib
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue