mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-16 15:05:56 +00:00
wip
This commit is contained in:
@@ -15,6 +15,7 @@ class ShareCommand extends Command
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
// TODO: Hacky workaround just to see if it works haha
|
||||||
if ($this->option('auth')) {
|
if ($this->option('auth')) {
|
||||||
$GLOBALS['expose.auth'] = $this->option('auth');
|
$GLOBALS['expose.auth'] = $this->option('auth');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,16 +35,15 @@ class TunnelMessage implements Message
|
|||||||
|
|
||||||
public function respond()
|
public function respond()
|
||||||
{
|
{
|
||||||
$clientConnection = $this->connectionManager->findConnectionForSubdomain($this->detectSubdomain());
|
|
||||||
|
|
||||||
if (is_null($clientConnection)) {
|
|
||||||
// $this->connection->send(\GuzzleHttp\Psr7\str(new Response(404, [], 'Not found')));
|
|
||||||
// $this->connection->close();
|
|
||||||
// dump("No clinet connection");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->hasBufferedAllData()) {
|
if ($this->hasBufferedAllData()) {
|
||||||
|
$clientConnection = $this->connectionManager->findConnectionForSubdomain($this->detectSubdomain());
|
||||||
|
|
||||||
|
if (is_null($clientConnection)) {
|
||||||
|
$this->connection->send(\GuzzleHttp\Psr7\str(new Response(404, [], 'Not found')));
|
||||||
|
$this->connection->close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->copyDataToClient($clientConnection);
|
$this->copyDataToClient($clientConnection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user