mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-15 14:35:55 +00:00
send expose version when sharing tcp ports
This commit is contained in:
@@ -147,8 +147,9 @@ class Client
|
|||||||
$promise = $deferred->promise();
|
$promise = $deferred->promise();
|
||||||
|
|
||||||
$wsProtocol = $this->configuration->port() === 443 ? 'wss' : 'ws';
|
$wsProtocol = $this->configuration->port() === 443 ? 'wss' : 'ws';
|
||||||
|
$exposeVersion = config('app.version');
|
||||||
|
|
||||||
connect($wsProtocol."://{$this->configuration->host()}:{$this->configuration->port()}/expose/control?authToken={$authToken}", [], [
|
connect($wsProtocol."://{$this->configuration->host()}:{$this->configuration->port()}/expose/control?authToken={$authToken}&version={$exposeVersion}", [], [
|
||||||
'X-Expose-Control' => 'enabled',
|
'X-Expose-Control' => 'enabled',
|
||||||
], $this->loop)
|
], $this->loop)
|
||||||
->then(function (WebSocket $clientConnection) use ($port, $deferred, $authToken) {
|
->then(function (WebSocket $clientConnection) use ($port, $deferred, $authToken) {
|
||||||
|
|||||||
Reference in New Issue
Block a user