Page MenuHomePhorge

D4561.1775372393.diff
No OneTemporary

Authored By
Unknown
Size
862 B
Referenced Files
None
Subscribers
None

D4561.1775372393.diff

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<int, string>|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 @@
+<?php
+
+return [
+ 'proxies' => env('TRUSTED_PROXIES', '10.0.0.0/8,127.0.0.1/8,172.16.0.0/12,192.168.0.0/16'),
+];

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 6:59 AM (7 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18832699
Default Alt Text
D4561.1775372393.diff (862 B)

Event Timeline