Skip to content

Commit

Permalink
Use HTTP_X_FORWARDED_IP header to getClientIP
Browse files Browse the repository at this point in the history
inspired by Torann#135
  • Loading branch information
alies-dev committed Feb 24, 2024
1 parent 698f804 commit c2a2b79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GeoIP.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function getCache()
public function getClientIP()
{
$remotes_keys = [
'HTTP_X_FORWARDED_IP',
'HTTP_X_FORWARDED_FOR',
'HTTP_CLIENT_IP',
'HTTP_X_REAL_IP',
Expand Down

0 comments on commit c2a2b79

Please sign in to comment.