1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Don't bother with strict check #yolo

This commit is contained in:
Adam Wathan
2017-10-17 12:12:12 -04:00
committed by GitHub
parent f757e8515b
commit 1e7b020fd8

View File

@@ -24,7 +24,7 @@ function show_valet_404()
*/
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
$domainPart = explode('.', $domain);
if (count($domainPart) > 6) {