File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
v3.0.3 - YYYY-MMM-DD (to be released)
2
2
-------------------------------------
3
3
4
+ - Fix parser to support GeoLookup with MaxMind
5
+ [Issue #1884, #1895 - @victorhora, @everping]
4
6
- parser: Fix simple quote setvar in the end of the line
5
7
[Issue #1831 - @zimmerle, @csanders-git]
6
8
- Fix pc file
Original file line number Diff line number Diff line change @@ -1080,11 +1080,11 @@ op_before_init:
1080
1080
}
1081
1081
| OPERATOR_GEOLOOKUP
1082
1082
{
1083
- #ifdef WITH_GEOIP
1083
+ #if defined( WITH_GEOIP) or defined(WITH_MAXMIND)
1084
1084
OPERATOR_CONTAINER ($$, new operators::GeoLookup ());
1085
1085
#else
1086
1086
std::stringstream ss;
1087
- ss << " This version of ModSecurity was not compiled with GeoIP support." ;
1087
+ ss << " This version of ModSecurity was not compiled with GeoIP or MaxMind support." ;
1088
1088
driver.error (@0 , ss.str ());
1089
1089
YYERROR;
1090
1090
#endif // WITH_GEOIP
@@ -1555,7 +1555,7 @@ expression:
1555
1555
/* Debug log: end */
1556
1556
| CONFIG_DIR_GEO_DB
1557
1557
{
1558
- #ifdef WITH_GEOIP
1558
+ #if defined( WITH_GEOIP) or defined(WITH_MAXMIND)
1559
1559
std::string err;
1560
1560
std::string file = modsecurity::utils::find_resource ($1 ,
1561
1561
driver.ref .back (), &err);
@@ -1575,7 +1575,7 @@ expression:
1575
1575
}
1576
1576
#else
1577
1577
std::stringstream ss;
1578
- ss << " This version of ModSecurity was not compiled with GeoIP support." ;
1578
+ ss << " This version of ModSecurity was not compiled with GeoIP or MaxMind support." ;
1579
1579
driver.error (@0 , ss.str ());
1580
1580
YYERROR;
1581
1581
#endif // WITH_GEOIP
You can’t perform that action at this time.
0 commit comments