mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-30 15:20:36 +00:00
Revert "admin: prevent ip spoofing for admin routes"
This reverts commit e3ed4a75b9
.
Not the right place to check this header...
This commit is contained in:
parent
e3ed4a75b9
commit
91fdf629b4
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class CommonController extends CController
|
||||||
$this->memcache = new YaampMemcache;
|
$this->memcache = new YaampMemcache;
|
||||||
$this->t1 = microtime(true);
|
$this->t1 = microtime(true);
|
||||||
|
|
||||||
if(user()->getState('yaamp_admin') && !isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
if(user()->getState('yaamp_admin')) {
|
||||||
$this->admin = true;
|
$this->admin = true;
|
||||||
$client_ip = arraySafeVal($_SERVER,'REMOTE_ADDR');
|
$client_ip = arraySafeVal($_SERVER,'REMOTE_ADDR');
|
||||||
if (!isAdminIP($client_ip)) {
|
if (!isAdminIP($client_ip)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue