mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 05:09:11 +00:00
Update TunnelMessageController.php
This commit is contained in:
1 parent
2a439371be
commit
6b9fee9326
1 file changed
+4
@@ -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