Skip to content

Commit c2a2b79

Browse files
committed
Use HTTP_X_FORWARDED_IP header to getClientIP
inspired by Torann#135
1 parent 698f804 commit c2a2b79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GeoIP.php

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public function getCache()
236236
public function getClientIP()
237237
{
238238
$remotes_keys = [
239+
'HTTP_X_FORWARDED_IP',
239240
'HTTP_X_FORWARDED_FOR',
240241
'HTTP_CLIENT_IP',
241242
'HTTP_X_REAL_IP',

0 commit comments

Comments
 (0)