mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	commit message
This commit is contained in:
		
							
								
								
									
										23
									
								
								app/Http/Middleware/TrustProxies.php
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										23
									
								
								app/Http/Middleware/TrustProxies.php
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Http\Middleware; | ||||
|  | ||||
| use Fideloper\Proxy\TrustProxies as Middleware; | ||||
| use Illuminate\Http\Request; | ||||
|  | ||||
| class TrustProxies extends Middleware | ||||
| { | ||||
|     /** | ||||
|      * The trusted proxies for this application. | ||||
|      * | ||||
|      * @var array|string | ||||
|      */ | ||||
|     protected $proxies; | ||||
|  | ||||
|     /** | ||||
|      * The headers that should be used to detect proxies. | ||||
|      * | ||||
|      * @var int | ||||
|      */ | ||||
|     protected $headers = Request::HEADER_X_FORWARDED_ALL; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user