File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/Illuminate/Http/Middleware Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class TrustProxies
10
10
/**
11
11
* The trusted proxies for the application.
12
12
*
13
- * @var string| array|null
13
+ * @var array|string |null
14
14
*/
15
15
protected $ proxies ;
16
16
@@ -47,7 +47,7 @@ public function handle(Request $request, Closure $next)
47
47
*/
48
48
protected function setTrustedProxyIpAddresses (Request $ request )
49
49
{
50
- $ trustedIps = $ this ->proxies ;
50
+ $ trustedIps = $ this ->proxies () ;
51
51
52
52
if ($ trustedIps === '* ' || $ trustedIps === '** ' ) {
53
53
return $ this ->setTrustedProxyIpAddressesToTheCallingIp ($ request );
@@ -123,4 +123,14 @@ protected function getTrustedHeaderNames()
123
123
124
124
return $ this ->headers ;
125
125
}
126
+
127
+ /**
128
+ * Get the trusted proxies.
129
+ *
130
+ * @return array|string|null
131
+ */
132
+ protected function proxies ()
133
+ {
134
+ return $ this ->proxies ;
135
+ }
126
136
}
You can’t perform that action at this time.
0 commit comments