Use hostname of request instead of hostname of proxy for SNI

This commit is contained in:
Richard van den Berg 2015-11-10 10:54:36 +01:00
parent 65b84107a1
commit f8e7634131

View file

@ -134,7 +134,7 @@ class CakeSocket {
$scheme = $this->config['protocol'] . '://';
}
$this->_setSslContext($this->config['host']);
$this->_setSslContext($this->config['request']['uri']['host']);
if (!empty($this->config['context'])) {
$context = stream_context_create($this->config['context']);
} else {