mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -83,7 +83,11 @@ class TunnelMessageController extends PostController
|
||||
{
|
||||
$request::setTrustedProxies([$controlConnection->socket->remoteAddress], Request::HEADER_X_FORWARDED_ALL);
|
||||
|
||||
$host = $this->configuration->hostname() . ($this->configuration->port() === 443) ?: ":{$this->configuration->port()}";
|
||||
$host = $this->configuration->hostname();
|
||||
|
||||
if ($this->configuration->port() !== 443) {
|
||||
$host .= ":{$this->configuration->port()}";
|
||||
}
|
||||
|
||||
$request->headers->set('Host', $controlConnection->host);
|
||||
$request->headers->set('X-Forwarded-Proto', $request->isSecure() ? 'https' : 'http');
|
||||
|
||||
Reference in New Issue
Block a user