We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e9d03 commit 482aeb1Copy full SHA for 482aeb1
src/GeoIP.php
@@ -74,7 +74,7 @@ public function getIp()
74
{
75
if (! $this->ip) {
76
if ($this->random) {
77
- $this->ip = long2ip(mt_rand(0, 4294967295));
+ $this->ip = long2ip(mt_rand());
78
} else {
79
$this->ip = array_get($_SERVER, 'HTTP_CLIENT_IP', array_get($_SERVER, 'HTTP_X_FORWARDED_FOR', array_get($_SERVER, 'HTTP_X_FORWARDED', array_get($_SERVER, 'HTTP_FORWARDED_FOR', array_get($_SERVER, 'HTTP_FORWARDED', array_get($_SERVER, 'REMOTE_ADDR', '127.0.0.1'))))));
80
}
0 commit comments