mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Merge 336d1e0eb477a1d19fae9dbd6724921b913d3136 into 31ff6f2c7243b00b79c52dbe653cefa7641f3545
This commit is contained in:
commit
485fb02278
@ -57,11 +57,11 @@ public:
|
|||||||
dbgTrace(D_GEO_FILTER) << "Check if country code: " << _country_code << " is allowed";
|
dbgTrace(D_GEO_FILTER) << "Check if country code: " << _country_code << " is allowed";
|
||||||
for (const GeoFilterCountry &country : allowed_countries) {
|
for (const GeoFilterCountry &country : allowed_countries) {
|
||||||
if (country.getCountryCode() == _country_code) {
|
if (country.getCountryCode() == _country_code) {
|
||||||
dbgTrace(D_GEO_FILTER) << "County code: " << _country_code << " is allowed";
|
dbgTrace(D_GEO_FILTER) << "Country code: " << _country_code << " is allowed";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dbgTrace(D_GEO_FILTER) << "County code: " << _country_code << " not in allowed countries list";
|
dbgTrace(D_GEO_FILTER) << "Country code: " << _country_code << " not in allowed countries list";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,11 +71,11 @@ public:
|
|||||||
dbgTrace(D_GEO_FILTER) << "Check if country code: " << _country_code << " is blocked";
|
dbgTrace(D_GEO_FILTER) << "Check if country code: " << _country_code << " is blocked";
|
||||||
for (const GeoFilterCountry &country : blocked_countries) {
|
for (const GeoFilterCountry &country : blocked_countries) {
|
||||||
if (country.getCountryCode() == _country_code) {
|
if (country.getCountryCode() == _country_code) {
|
||||||
dbgTrace(D_GEO_FILTER) << "County code: " << _country_code << " is blocked";
|
dbgTrace(D_GEO_FILTER) << "Country code: " << _country_code << " is blocked";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dbgTrace(D_GEO_FILTER) << "County code: " << _country_code << " not in blocked countries list";
|
dbgTrace(D_GEO_FILTER) << "Country code: " << _country_code << " not in blocked countries list";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user