mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -43,7 +43,7 @@ class Client
|
||||
|
||||
$protocol = $this->configuration->port() === 443 ? "wss" : "ws";
|
||||
|
||||
connect($protocol."://{$this->configuration->host()}:{$this->configuration->port()}/__expose_control__?authToken={$token}", [], [
|
||||
connect($protocol."://{$this->configuration->host()}:{$this->configuration->port()}/expose/control?authToken={$token}", [], [
|
||||
'X-Expose-Control' => 'enabled',
|
||||
], $this->loop)
|
||||
->then(function (WebSocket $clientConnection) use ($sharedUrl, $subdomain) {
|
||||
|
||||
@@ -26,7 +26,7 @@ class ProxyManager
|
||||
{
|
||||
$protocol = $this->configuration->port() === 443 ? "wss" : "ws";
|
||||
|
||||
connect($protocol."://{$this->configuration->host()}:{$this->configuration->port()}/__expose_control__", [], [
|
||||
connect($protocol."://{$this->configuration->host()}:{$this->configuration->port()}/expose/control", [], [
|
||||
'X-Expose-Control' => 'enabled',
|
||||
], $this->loop)
|
||||
->then(function (WebSocket $proxyConnection) use ($clientId, $connectionData) {
|
||||
|
||||
@@ -84,7 +84,7 @@ class Factory
|
||||
|
||||
protected function addExposeRoutes()
|
||||
{
|
||||
$this->router->get('/__expose_control__', ControlMessageController::class);
|
||||
$this->router->get('/expose/control', ControlMessageController::class, 'request.headers.get("x-expose-control") matches "/enabled/i"');
|
||||
|
||||
$this->router->addSymfonyRoute('tunnel',
|
||||
new Route('/{__catchall__}', [
|
||||
|
||||
Reference in New Issue
Block a user