mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Use config auth when sharing TCP ports
This commit is contained in:
@@ -27,11 +27,13 @@ class SharePortCommand extends Command
|
|||||||
{
|
{
|
||||||
$this->configureConnectionLogger();
|
$this->configureConnectionLogger();
|
||||||
|
|
||||||
|
$auth = $this->option('auth') ?? config('expose.auth_token', '');
|
||||||
|
|
||||||
(new Factory())
|
(new Factory())
|
||||||
->setLoop(app(LoopInterface::class))
|
->setLoop(app(LoopInterface::class))
|
||||||
->setHost(config('expose.host', 'localhost'))
|
->setHost(config('expose.host', 'localhost'))
|
||||||
->setPort(config('expose.port', 8080))
|
->setPort(config('expose.port', 8080))
|
||||||
->setAuth($this->option('auth'))
|
->setAuth($auth)
|
||||||
->createClient()
|
->createClient()
|
||||||
->sharePort($this->argument('port'))
|
->sharePort($this->argument('port'))
|
||||||
->createHttpServer()
|
->createHttpServer()
|
||||||
|
|||||||
Reference in New Issue
Block a user