mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 12:02:14 +00:00
Add http-client-ip header
This commit is contained in:
@@ -166,6 +166,10 @@ class Request
|
|||||||
return $this->getHeader('http-cf-connecting-ip');
|
return $this->getHeader('http-cf-connecting-ip');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->getHeader('http-client-ip') !== null){
|
||||||
|
return $this->getHeader('http-client-ip');
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->getHeader('http-x-forwarded-for') !== null) {
|
if ($this->getHeader('http-x-forwarded-for') !== null) {
|
||||||
return $this->getHeader('http-x-forwarded-for');
|
return $this->getHeader('http-x-forwarded-for');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user