Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117896073
D4561.1775372393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
862 B
Referenced Files
None
Subscribers
None
D4561.1775372393.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4561: Configurable trust proxies
Attached
Detach File
Event Timeline