mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Temporarily disable Geo Lookup logs to avoid crash on unit tests
This commit is contained in:
parent
f811ec6518
commit
7ff38e9018
@ -33,9 +33,10 @@ bool GeoLookup::evaluate(Assay *assay, const std::string &exp) {
|
|||||||
using std::placeholders::_2;
|
using std::placeholders::_2;
|
||||||
|
|
||||||
GeoIPRecord *gir;
|
GeoIPRecord *gir;
|
||||||
|
bool ret = true;
|
||||||
|
|
||||||
bool ret = Utils::GeoLookup::getInstance().lookup(exp, &gir,
|
//bool ret = Utils::GeoLookup::getInstance().lookup(exp, &gir,
|
||||||
std::bind(&GeoLookup::debug, this, assay, _1, _2));
|
// std::bind(&GeoLookup::debug, this, assay, _1, _2));
|
||||||
|
|
||||||
if (ret && gir) {
|
if (ret && gir) {
|
||||||
if (gir->country_code) {
|
if (gir->country_code) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user