mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +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;
|
||||
|
||||
GeoIPRecord *gir;
|
||||
bool ret = true;
|
||||
|
||||
bool ret = Utils::GeoLookup::getInstance().lookup(exp, &gir,
|
||||
std::bind(&GeoLookup::debug, this, assay, _1, _2));
|
||||
//bool ret = Utils::GeoLookup::getInstance().lookup(exp, &gir,
|
||||
// std::bind(&GeoLookup::debug, this, assay, _1, _2));
|
||||
|
||||
if (ret && gir) {
|
||||
if (gir->country_code) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user