Added command line options for server-host and server-port (#147)

* Added server options

* Restored box.json

* Reverted build and versioning...

* Please the style gods
This commit is contained in:
Tii
2020-12-04 22:44:25 +01:00
committed by GitHub
parent c92d4b258c
commit bded9f754e
3 changed files with 11 additions and 7 deletions

View File

@@ -45,13 +45,13 @@ class Client
$sharedUrl = $this->prepareSharedUrl($sharedUrl);
foreach ($subdomains as $subdomain) {
$this->connectToServer($sharedUrl, $subdomain, config('expose.auth_token'));
$this->connectToServer($sharedUrl, $subdomain, $this->configuration->auth());
}
}
public function sharePort(int $port)
{
$this->connectToServerAndShareTcp($port, config('expose.auth_token'));
$this->connectToServerAndShareTcp($port, $this->configuration->auth());
}
protected function prepareSharedUrl(string $sharedUrl): string