mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 13:19:09 +00:00
wip
This commit is contained in:
1 parent
eaf04a8eae
commit
12f08db391
11 files changed
+365
-39
No files matched your search
@@ -52,17 +52,34 @@ class ControlConnection
|
||||
$this->proxyManager->createProxy($this->clientId, $data);
|
||||
}
|
||||
|
||||
public function createTcpProxy($data)
|
||||
{
|
||||
$this->proxyManager->createTcpProxy($this->clientId, $data);
|
||||
}
|
||||
|
||||
public function authenticate(string $sharedHost, string $subdomain)
|
||||
{
|
||||
$this->socket->send(json_encode([
|
||||
'event' => 'authenticate',
|
||||
'data' => [
|
||||
'type' => 'http',
|
||||
'host' => $sharedHost,
|
||||
'subdomain' => empty($subdomain) ? null : $subdomain,
|
||||
],
|
||||
]));
|
||||
}
|
||||
|
||||
public function authenticateTcp(int $port)
|
||||
{
|
||||
$this->socket->send(json_encode([
|
||||
'event' => 'authenticate',
|
||||
'data' => [
|
||||
'type' => 'tcp',
|
||||
'port' => $port,
|
||||
],
|
||||
]));
|
||||
}
|
||||
|
||||
public function ping()
|
||||
{
|
||||
$this->socket->send(json_encode([
|
||||
|
||||
Reference in new issue
Block a user