ldc-mesbr-app/app/Http/Middleware/TrustProxies.php

24 lines
480 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
*/
2019-02-27 16:59:02 +01:00
protected $proxies = ['192.168.34.1', '192.168.31.1', '192.168.31.2'];
2019-01-15 14:17:15 +01:00
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}