We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcbd9b1 commit 5f8e5a8Copy full SHA for 5f8e5a8
src/Illuminate/Http/Middleware/TrustProxies.php
@@ -68,6 +68,12 @@ protected function setTrustedProxyIpAddresses(Request $request)
68
{
69
$trustedIps = $this->proxies() ?: config('trustedproxy.proxies');
70
71
+ if (is_null($trustedIps) &&
72
+ (($_ENV['LARAVEL_CLOUD'] ?? false) === '1' ||
73
+ ($_SERVER['LARAVEL_CLOUD'] ?? false) === '1')) {
74
+ $trustedIps = '*';
75
+ }
76
+
77
if ($trustedIps === '*' || $trustedIps === '**') {
78
return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
79
}
0 commit comments