mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-16 23:15:55 +00:00
Update TunnelMessageController.php
This commit is contained in:
@@ -70,6 +70,10 @@ class TunnelMessageController extends Controller
|
|||||||
|
|
||||||
protected function detectSubdomain(Request $request): ?string
|
protected function detectSubdomain(Request $request): ?string
|
||||||
{
|
{
|
||||||
|
if (substr_count($request->header('Host'), '.') === 1) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$subdomain = Str::before($request->header('Host'), '.');
|
$subdomain = Str::before($request->header('Host'), '.');
|
||||||
|
|
||||||
return $subdomain === $request->header('Host') ? null : $subdomain;
|
return $subdomain === $request->header('Host') ? null : $subdomain;
|
||||||
|
|||||||
Reference in New Issue
Block a user