diff --git a/src/app/Http/Middleware/TrustProxies.php b/src/app/Http/Middleware/TrustProxies.php --- a/src/app/Http/Middleware/TrustProxies.php +++ b/src/app/Http/Middleware/TrustProxies.php @@ -7,18 +7,6 @@ class TrustProxies extends Middleware { - /** - * The trusted proxies for this application. - * - * @var array|string|null - */ - protected $proxies = [ - '10.0.0.0/8', - '127.0.0.1/8', - '172.16.0.0/12', - '192.168.0.0/16' - ]; - /** * The headers that should be used to detect proxies. * diff --git a/src/config/trustedproxy.php b/src/config/trustedproxy.php new file mode 100644 --- /dev/null +++ b/src/config/trustedproxy.php @@ -0,0 +1,5 @@ + env('TRUSTED_PROXIES', '10.0.0.0/8,127.0.0.1/8,172.16.0.0/12,192.168.0.0/16'), +];