mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Allow disconnect using subdomain and server host
This commit is contained in:
@@ -22,7 +22,11 @@ class DisconnectSiteController extends AdminController
|
||||
|
||||
public function handle(Request $request, ConnectionInterface $httpConnection)
|
||||
{
|
||||
if ($request->has('server_host')) {
|
||||
$connection = $this->connectionManager->findControlConnectionForSubdomainAndServerHost($request->get('id'), $request->get('server_host'));
|
||||
} else {
|
||||
$connection = $this->connectionManager->findControlConnectionForClientId($request->get('id'));
|
||||
}
|
||||
|
||||
if (! is_null($connection)) {
|
||||
$connection->close();
|
||||
|
||||
Reference in New Issue
Block a user