1
0
Fork 0
mirror of https://github.com/Findus23/plugin-ExcludeCountries.git synced 2024-09-18 14:43:48 +02:00

use correct IP (non-binary)

see #2
This commit is contained in:
Lukas Winkler 2020-09-04 13:35:42 +02:00
parent 865b72a383
commit 20a3c31396
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class ExcludeCountries extends Plugin
$settings = new SystemSettings();
$location = $provider->getLocation(["ip" => $request->getIp()]);
$location = $provider->getLocation(["ip" => $request->getIpString()]);
$countryCode = strtolower($location[LocationProvider::COUNTRY_CODE_KEY]);
if (!$location || empty($countryCode)) {
$logger->debug("ExcludeCountries could not detect a location");

View file

@ -1,7 +1,7 @@
{
"name": "ExcludeCountries",
"description": "Exclude or include visitors from selected countries",
"version": "0.1.4",
"version": "0.1.5",
"theme": false,
"require": {
"piwik": ">=3.10.0,<4.0.0-b1"