mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-15 14:35:55 +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)
|
public function handle(Request $request, ConnectionInterface $httpConnection)
|
||||||
{
|
{
|
||||||
$connection = $this->connectionManager->findControlConnectionForClientId($request->get('id'));
|
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)) {
|
if (! is_null($connection)) {
|
||||||
$connection->close();
|
$connection->close();
|
||||||
|
|||||||
Reference in New Issue
Block a user