Explorar o código

Merge pull request #1942 from pixelfed/staging

Fix TRUST_PROXIES configuration
daniel %!s(int64=5) %!d(string=hai) anos
pai
achega
3a12a32378
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      CHANGELOG.md
  2. 1 1
      config/trustedproxy.php

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 ### Fixed
 - Fixed Story Compose bug affecting postgres instances ([#1918](https://github.com/pixelfed/pixelfed/pull/1918))
 - Fixed header background bug on MomentUI profiles ([#1933](https://github.com/pixelfed/pixelfed/pull/1933))
+- Fixed TRUST_PROXIES configuration ([#1941](https://github.com/pixelfed/pixelfed/pull/1941))
 
 
 ### Changed

+ 1 - 1
config/trustedproxy.php

@@ -23,5 +23,5 @@ return [
      * how many proxies that client's request has
      * subsequently passed through.
      */
-    'proxies' => explode(',', env('TRUST_PROXIES', '')),
+    'proxies' => env('TRUST_PROXIES', ''),
 ];