Page MenuHomePhorge

D4561.1775495625.diff
No OneTemporary

Authored By
Unknown
Size
876 B
Referenced Files
None
Subscribers
None

D4561.1775495625.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' => explode(',', 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
Mon, Apr 6, 5:13 PM (18 h, 51 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18838487
Default Alt Text
D4561.1775495625.diff (876 B)

Event Timeline