Skip to content

Commit e53d9b7

Browse files
committed
Critical bug fix
1 parent 76cd007 commit e53d9b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"minimum-stability": "dev",
1414
"require": {
1515
"php": ">=7.2",
16-
"guzzlehttp/guzzle": "^7.0",
16+
"guzzlehttp/guzzle": "^6.0 || ^7.0",
1717
"ipinfo/ipinfo": "2.1.x-dev"
1818
},
1919
"require-dev": {

src/GeoIPLocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getIP()
9595
$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
9696
}
9797

98-
if (in_array($ip, $this->localhostIp)) {
98+
if (in_array($ip, $this->invalidIps)) {
9999
$ip = $this->localhostIp;
100100
}
101101
$this->ip = trim($ip);

0 commit comments

Comments
 (0)