From cb6e8a4eaad72a824e12fb1323964dd3b369cb4d Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 16 Jan 2020 12:14:05 -0600 Subject: [PATCH 1/2] Don't always explode the TRUST_PROXIES variable --- config/trustedproxy.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/trustedproxy.php b/config/trustedproxy.php index 0a0776ad..1ab2b092 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -1,5 +1,13 @@ explode(',', env('TRUST_PROXIES', '')), + 'proxies' => $proxies, ]; From 64af65e992f2f7d15ddeb91521772546b298e5b3 Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 16 Jan 2020 23:34:10 -0600 Subject: [PATCH 2/2] TrustProxies natively supports , strings --- config/trustedproxy.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/config/trustedproxy.php b/config/trustedproxy.php index 1ab2b092..608e189d 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -1,13 +1,5 @@ $proxies, + 'proxies' => env('TRUST_PROXIES', ''), ];