mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
commit
7cc163d9b8
1 changed files with 6 additions and 1 deletions
|
@ -134,7 +134,12 @@ class CakeSocket {
|
||||||
$scheme = $this->config['protocol'] . '://';
|
$scheme = $this->config['protocol'] . '://';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_setSslContext($this->config['host']);
|
$host = $this->config['host'];
|
||||||
|
if (isset($this->config['request']['uri']['host'])) {
|
||||||
|
$host = $this->config['request']['uri']['host'];
|
||||||
|
}
|
||||||
|
$this->_setSslContext($host);
|
||||||
|
|
||||||
if (!empty($this->config['context'])) {
|
if (!empty($this->config['context'])) {
|
||||||
$context = stream_context_create($this->config['context']);
|
$context = stream_context_create($this->config['context']);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue