Skip to content

Commit f00eaa2

Browse files
committed
update trust proxy
1 parent 0bfa079 commit f00eaa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Http/Middleware/TrustProxies.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ protected function setTrustedProxyIpAddresses(Request $request)
6868
{
6969
$trustedIps = $this->proxies() ?: config('trustedproxy.proxies');
7070

71-
if (is_null($trustedIps) && laravel_cloud()) {
71+
if (is_null($trustedIps) &&
72+
(laravel_cloud() || str_ends_with($request->host(), '.on-forge.com'))) {
7273
$trustedIps = '*';
7374
}
7475

0 commit comments

Comments
 (0)