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 eeb16e2 commit 4bf313fCopy full SHA for 4bf313f
src/Http/Middleware/TrustProxies.php
@@ -58,7 +58,11 @@ protected function setTrustedProxyCloudflare(Request $request): void
58
$cachedProxies = Cache::rememberForever($cacheKey, fn () => LaravelCloudflare::getProxies());
59
60
if (count($cachedProxies) > 0) {
61
- $this->proxies = array_merge((array) $this->proxies, $cachedProxies);
+ parent::at(collect((array) parent::$alwaysTrustProxies)
62
+ ->merge($cachedProxies)
63
+ ->unique()
64
+ ->toArray()
65
+ );
66
}
67
68
0 commit comments