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