mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Added custom server host ability
This commit is contained in:
@@ -7,7 +7,7 @@ use React\EventLoop\LoopInterface;
|
||||
|
||||
class ShareCommand extends ServerAwareCommand
|
||||
{
|
||||
protected $signature = 'share {host} {--subdomain=} {--auth=} {--dns=}';
|
||||
protected $signature = 'share {host} {--subdomain=} {--auth=} {--dns=} {--domain=}';
|
||||
|
||||
protected $description = 'Share a local url with a remote expose server';
|
||||
|
||||
@@ -29,7 +29,11 @@ class ShareCommand extends ServerAwareCommand
|
||||
->setPort($this->getServerPort())
|
||||
->setAuth($auth)
|
||||
->createClient()
|
||||
->share($this->argument('host'), explode(',', $this->option('subdomain')))
|
||||
->share(
|
||||
$this->argument('host'),
|
||||
explode(',', $this->option('subdomain')),
|
||||
$this->option('domain')
|
||||
)
|
||||
->createHttpServer()
|
||||
->run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user