mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03: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) {
|
||||
return $this->getHeader('http-x-forwarded_for');
|
||||
return $this->getHeader('http-x-forwarded-for');
|
||||
}
|
||||
|
||||
return $this->getHeader('remote-addr');
|
||||
|
||||
Reference in New Issue
Block a user