mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 01:10:08 +01:00
Make 127.0.0.1 SERVER_ADDR definition only if null (#1356)
This commit is contained in:
@@ -51,7 +51,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
|
||||
public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
{
|
||||
$_SERVER['PHP_SELF'] = $uri;
|
||||
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
|
||||
$_SERVER['SERVER_ADDR'] = $_SERVER['SERVER_ADDR'] ?? '127.0.0.1';
|
||||
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$dynamicCandidates = [
|
||||
|
||||
Reference in New Issue
Block a user