mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
Add http-client-ip header
This commit is contained in:
@@ -166,6 +166,10 @@ class Request
|
||||
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) {
|
||||
return $this->getHeader('http-x-forwarded-for');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user