Skip to content

Commit 44bb8b4

Browse files
committed
Fix bad config for PHP 8.1
1 parent a6df0af commit 44bb8b4

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

config/trustedproxy.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,5 @@
2424
* subsequently passed through.
2525
*/
2626
'proxies' => in_array(env('TRUSTED_PROXIES', []), ['*', '**']) ?
27-
env('TRUSTED_PROXIES') : explode(',', env('TRUSTED_PROXIES', null)),
28-
29-
/*
30-
* Or, to trust all proxies that connect
31-
* directly to your server, uncomment this:
32-
*/
33-
// 'proxies' => '*',
34-
35-
/*
36-
* Or, to trust ALL proxies, including those that
37-
* are in a chain of forwarding, uncomment this:
38-
*/
39-
// 'proxies' => '**',
40-
41-
/*
42-
* Default Header Names
43-
*
44-
* Change these if the proxy does
45-
* not send the default header names.
46-
*
47-
* Note that headers such as X-Forwarded-For
48-
* are transformed to HTTP_X_FORWARDED_FOR format.
49-
*
50-
* The following are Symfony defaults, found in
51-
* \Symfony\Component\HttpFoundation\Request::$trustedHeaders
52-
*/
53-
'headers' => \Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
27+
env('TRUSTED_PROXIES') : explode(',', env('TRUSTED_PROXIES') ?? ''),
5428
];

0 commit comments

Comments
 (0)