mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
Fix SSL via proxy
This commit is contained in:
parent
1af5d23e87
commit
4a4728b44d
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ class CakeSocket {
|
||||||
if (!empty($this->config['protocol'])) {
|
if (!empty($this->config['protocol'])) {
|
||||||
$scheme = $this->config['protocol'] . '://';
|
$scheme = $this->config['protocol'] . '://';
|
||||||
}
|
}
|
||||||
|
if (!empty($this->config['proxy'])) {
|
||||||
|
$scheme = 'tcp://';
|
||||||
|
}
|
||||||
|
|
||||||
$host = $this->config['host'];
|
$host = $this->config['host'];
|
||||||
if (isset($this->config['request']['uri']['host'])) {
|
if (isset($this->config['request']['uri']['host'])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue