Skip to content

Firefly III: a personal finances manager

Fix for #1572

James Colefb122ba09726
diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php
index fe1d249e83..3377dd6720 100644
--- a/app/Http/Middleware/TrustProxies.php
+++ b/app/Http/Middleware/TrustProxies.php
@@ -36,13 +36,6 @@ class TrustProxies extends Middleware
/** @var int The headers to check. */
protected $headers = Request::HEADER_X_FORWARDED_ALL;
- /**
- * The trusted proxies for this application.
- *
- * @var array|string
- */
- protected $proxies = [];
-
/**
* TrustProxies constructor.
*
@@ -52,6 +45,9 @@ class TrustProxies extends Middleware
{
$trustedProxies = (string)env('TRUSTED_PROXIES', null);
$this->proxies = explode(',', $trustedProxies);
+ if ($trustedProxies === '**') {
+ $this->proxies = '**';
+ }
parent::__construct($config);
}
}