Skip to content

Commit

Permalink
Use $host parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B authored and markstory committed Mar 24, 2015
1 parent 9e6b1b6 commit 1f7b787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Network/Http/HttpSocket.php
Expand Up @@ -724,11 +724,11 @@ protected function _configContext($host) {
}
if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
if (empty($this->config['context']['ssl']['peer_name'])) {
$this->config['context']['ssl']['peer_name'] = $this->request['uri']['host'];
$this->config['context']['ssl']['peer_name'] = $host;
}
} else {
if (empty($this->config['context']['ssl']['SNI_server_name'])) {
$this->config['context']['ssl']['SNI_server_name'] = $this->request['uri']['host'];
$this->config['context']['ssl']['SNI_server_name'] = $host;
}
}
}
Expand Down

0 comments on commit 1f7b787

Please sign in to comment.