mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update common.php
This commit is contained in:
parent
e057bb077f
commit
c95a3285be
@ -37,6 +37,8 @@ header('X-Frame-Options: SAMEORIGIN');
|
||||
header('X-Powered-By: TorrentPier LTS Forever!');
|
||||
|
||||
// Set remote address
|
||||
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
{
|
||||
if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; // Cloudflare
|
||||
@ -45,6 +47,7 @@ elseif (isset($_SERVER['HTTP_FASTLY_CLIENT_IP']))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_FASTLY_CLIENT_IP']; // Fastly
|
||||
}
|
||||
}
|
||||
|
||||
// Get initial config
|
||||
if (file_exists(BB_ROOT . 'library/config.local.php'))
|
||||
|
Loading…
Reference in New Issue
Block a user