Use config auth when sharing TCP ports

This commit is contained in:
Marcel Pociot committed 2021-03-05 09:14:03 +01:00
1 parent e2e9edf769
commit a9699eb254
1 file changed
+3 -1
+3 -1
View File
@@ -27,11 +27,13 @@ class SharePortCommand extends Command
{
$this->configureConnectionLogger();
$auth = $this->option('auth') ?? config('expose.auth_token', '');
(new Factory())
->setLoop(app(LoopInterface::class))
->setHost(config('expose.host', 'localhost'))
->setPort(config('expose.port', 8080))
->setAuth($this->option('auth'))
->setAuth($auth)
->createClient()
->sharePort($this->argument('port'))
->createHttpServer()