Skip to content

Commit

Permalink
Critical bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
victorybiz committed Mar 12, 2021
1 parent 76cd007 commit e53d9b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"minimum-stability": "dev",
"require": {
"php": ">=7.2",
"guzzlehttp/guzzle": "^7.0",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"ipinfo/ipinfo": "2.1.x-dev"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/GeoIPLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getIP()
$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
}

if (in_array($ip, $this->localhostIp)) {
if (in_array($ip, $this->invalidIps)) {
$ip = $this->localhostIp;
}
$this->ip = trim($ip);
Expand Down

0 comments on commit e53d9b7

Please # to comment.