File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1988,11 +1988,11 @@ namespace yy {
1988
1988
case 71 :
1989
1989
#line 1082 "seclang-parser.yy" // lalr1.cc:856
1990
1990
{
1991
- #ifdef WITH_GEOIP
1991
+ #if defined( WITH_GEOIP) or defined(WITH_MAXMIND)
1992
1992
OPERATOR_CONTAINER (yylhs.value .as < std::unique_ptr<Operator> > (), new operators::GeoLookup ());
1993
1993
#else
1994
1994
std::stringstream ss;
1995
- ss << " This version of ModSecurity was not compiled with GeoIP support." ;
1995
+ ss << " This version of ModSecurity was not compiled with GeoIP or MaxMind support." ;
1996
1996
driver.error (yystack_[1 ].location , ss.str ());
1997
1997
YYERROR;
1998
1998
#endif // WITH_GEOIP
@@ -2669,7 +2669,7 @@ namespace yy {
2669
2669
case 125 :
2670
2670
#line 1557 "seclang-parser.yy" // lalr1.cc:856
2671
2671
{
2672
- #ifdef WITH_GEOIP
2672
+ #if defined( WITH_GEOIP) or defined(WITH_MAXMIND)
2673
2673
std::string err;
2674
2674
std::string file = modsecurity::utils::find_resource (yystack_[0 ].value .as < std::string > (),
2675
2675
driver.ref .back (), &err);
@@ -2689,7 +2689,7 @@ namespace yy {
2689
2689
}
2690
2690
#else
2691
2691
std::stringstream ss;
2692
- ss << " This version of ModSecurity was not compiled with GeoIP support." ;
2692
+ ss << " This version of ModSecurity was not compiled with GeoIP or MaxMind support." ;
2693
2693
driver.error (yystack_[1 ].location , ss.str ());
2694
2694
YYERROR;
2695
2695
#endif // WITH_GEOIP
You can’t perform that action at this time.
0 commit comments