Disable SNI in HttpSocket

This commit is contained in:
t.gommers 2015-07-27 13:03:21 +02:00
parent de4b44a37b
commit b16d627b36

View file

@ -719,7 +719,7 @@ class HttpSocket extends CakeSocket {
unset($this->config[$key]);
}
if (version_compare(PHP_VERSION, '5.3.2', '>=')) {
if (empty($this->config['context']['ssl']['SNI_enabled'])) {
if (!isset($this->config['context']['ssl']['SNI_enabled'])) {
$this->config['context']['ssl']['SNI_enabled'] = true;
}
if (version_compare(PHP_VERSION, '5.6.0', '>=')) {