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

Update Ngrok (valet share) to lowercase domains before matching

This commit is contained in:
Matt Stauffer
2022-05-18 11:47:30 -04:00
parent b084a8dfdd
commit e69d448245
3 changed files with 70 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ public function findHttpTunnelUrl($tunnels, $domain)
// find the one responding on HTTP. Each tunnel has an HTTP and a HTTPS address
// but for local dev purposes we just desire the plain HTTP URL endpoint.
foreach ($tunnels as $tunnel) {
if ($tunnel->proto === 'http' && strpos($tunnel->config->addr, $domain)) {
if ($tunnel->proto === 'http' && strpos($tunnel->config->addr, strtolower($domain))) {
return $tunnel->public_url;
}
}