mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-20 00:56:09 +00:00
formatting & minor optimalisation for getOption
This commit is contained in:
@@ -369,11 +369,11 @@ class Client
|
|||||||
{
|
{
|
||||||
if ($this->httpClient === null) {
|
if ($this->httpClient === null) {
|
||||||
$this->httpClient = new HttpClient([
|
$this->httpClient = new HttpClient([
|
||||||
'base_uri' => (
|
'base_uri' => (
|
||||||
($this->getOption('mode', self::MODE_LIVE) == self::MODE_LIVE) ?
|
($this->getOption('mode', self::MODE_LIVE) == self::MODE_LIVE) ?
|
||||||
self::DIRECTORY_LIVE : self::DIRECTORY_STAGING),
|
self::DIRECTORY_LIVE : self::DIRECTORY_STAGING),
|
||||||
'curl.options'=>[
|
'curl.options' => [
|
||||||
'CURLOPT_INTERFACE'=>($this->getOption('source_ip',false) !== false) ? $this->config['source_ip'] : '0.0.0.0'
|
'CURLOPT_INTERFACE' => $this->getOption('source_ip', '0.0.0.0')
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user