mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-14 05:55:54 +00:00
Allow users to specify custom hostnames
This commit is contained in:
@@ -57,7 +57,7 @@ class ControlConnection
|
||||
$this->proxyManager->createTcpProxy($this->clientId, $data);
|
||||
}
|
||||
|
||||
public function authenticate(string $sharedHost, string $subdomain)
|
||||
public function authenticate(string $sharedHost, ?string $subdomain, ?string $hostname)
|
||||
{
|
||||
$this->socket->send(json_encode([
|
||||
'event' => 'authenticate',
|
||||
@@ -65,6 +65,7 @@ class ControlConnection
|
||||
'type' => 'http',
|
||||
'host' => $sharedHost,
|
||||
'subdomain' => empty($subdomain) ? null : $subdomain,
|
||||
'hostname' => empty($hostname) ? null : $hostname,
|
||||
],
|
||||
]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user