Closed davidlawson closed 5 years ago
https://github.com/Torann/laravel-geoip/blob/master/src/GeoIP.php#L135
When getLocation is called with no $ip, null is cached to the location of $this->getClientIP(). I think the $ip = $ip ?: $this->remote_ip; check needs to go above the cache check.
getLocation
$ip
null
$this->getClientIP()
$ip = $ip ?: $this->remote_ip;
https://github.com/Torann/laravel-geoip/blob/master/src/GeoIP.php#L135
When
getLocation
is called with no$ip
,null
is cached to the location of$this->getClientIP()
. I think the$ip = $ip ?: $this->remote_ip;
check needs to go above the cache check.