mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Don't bother with strict check #yolo
This commit is contained in:
@@ -24,7 +24,7 @@ function show_valet_404()
|
|||||||
*/
|
*/
|
||||||
function valet_support_wildcard_dns($domain)
|
function valet_support_wildcard_dns($domain)
|
||||||
{
|
{
|
||||||
if (in_array(substr($domain, -7), ['.xip.io', '.nip.io'], true)) {
|
if (in_array(substr($domain, -7), ['.xip.io', '.nip.io'])) {
|
||||||
// support only ip v4 for now
|
// support only ip v4 for now
|
||||||
$domainPart = explode('.', $domain);
|
$domainPart = explode('.', $domain);
|
||||||
if (count($domainPart) > 6) {
|
if (count($domainPart) > 6) {
|
||||||
|
|||||||
Reference in New Issue
Block a user