Skip to content

Commit

Permalink
Disable SNI in HttpSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
DT-Tijme committed Jul 27, 2015
1 parent de4b44a commit b16d627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Http/HttpSocket.php
Expand Up @@ -719,7 +719,7 @@ protected function _configContext($host) {
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', '>=')) {
Expand Down

0 comments on commit b16d627

Please sign in to comment.