8000 Update index.php · Rene-Roscher/paste.laravel.io@e5b3c71 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5b3c71

Browse files
authored
Update index.php
1 parent d776667 commit e5b3c71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

public/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333

3434
require __DIR__.'/../vendor/autoload.php';
3535

36+
/*
37+
| Cloudflare Proxy
38+
*/
39+
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
40+
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
41+
}
42+
3643
/*
3744
|--------------------------------------------------------------------------
3845
| Run The Application

0 commit comments

Comments
 (0)
0