Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit ca51fed

Browse files
committed
Add to Proxy adapter all the options of the Socket adapter
sslcafile and sslverifypeername were present in the Socket adapter but not in the Proxy adapter. We need all the options in order to avoid PHP warnings about accessing invalid array keys.
1 parent fd6d8cb commit ca51fed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Client/Adapter/Proxy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,21 @@ class Proxy extends Socket
3131
* @var array
3232
*/
3333
protected $config = [
34+
'persistent' => false,
3435
'ssltransport' => 'ssl',
3536
'sslcert' => null,
3637
'sslpassphrase' => null,
3738
'sslverifypeer' => true,
39+
'sslcafile' => null,
3840
'sslcapath' => null,
3941
'sslallowselfsigned' => false,
4042
'sslusecontext' => false,
43+
'sslverifypeername' => true,
4144
'proxy_host' => '',
4245
'proxy_port' => 8080,
4346
'proxy_user' => '',
4447
'proxy_pass' => '',
4548
'proxy_auth' => Client::AUTH_BASIC,
46-
'persistent' => false
4749
];
4850

4951
/**

0 commit comments

Comments
 (0)