mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 21:02:15 +00:00
Fixed bug in getIp
Fixed typo
This commit is contained in:
@@ -167,7 +167,7 @@ class Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->getHeader('remote-addr');
|
return $this->getHeader('remote-addr');
|
||||||
|
|||||||
Reference in New Issue
Block a user