"Trusting All Proxies": "**" is deprecated, use "*"

I was source diving fideloper's TrustedProxies package and found this:
```
        // Trust any IP address that calls us
        // `**` for backwards compatibility, but is depreciated
        if ($trustedIps === '*' || $trustedIps === '**') {
            return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
        }
```
[see file on github](https://github.com/fideloper/TrustedProxy/blob/master/src/TrustProxies.php)

It looks like the package docs still make a distinction between the two, so probably don't need this - but figured I'd put it out there.
This commit is contained in:
Caleb Porzio 2018-02-26 14:49:00 -05:00 committed by GitHub
parent d0ebb876e8
commit a191ebf2a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -400,11 +400,11 @@ To solve this, you may use the `App\Http\Middleware\TrustProxies` middleware tha
#### Trusting All Proxies
If you are using Amazon AWS or another "cloud" load balancer provider, you may not know the IP addresses of your actual balancers. In this case, you may use `**` to trust all proxies:
If you are using Amazon AWS or another "cloud" load balancer provider, you may not know the IP addresses of your actual balancers. In this case, you may use `*` to trust all proxies:
/**
* The trusted proxies for this application.
*
* @var array
*/
protected $proxies = '**';
protected $proxies = '*';