mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Adds support to the operator @ipMatchFromFile and @ipMatchF
This commit is contained in:
@@ -18,17 +18,16 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "operators/operator.h"
|
||||
#include "operators/ip_match_from_file.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace ModSecurity {
|
||||
namespace operators {
|
||||
|
||||
class IpMatchF : public Operator {
|
||||
class IpMatchF : public IpMatchFromFile {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
IpMatchF(std::string p, std::string o, bool i);
|
||||
bool evaluate(Assay *assay);
|
||||
IpMatchF(std::string op, std::string param, bool negation)
|
||||
: IpMatchFromFile(op, param, negation) { }
|
||||
};
|
||||
|
||||
} // namespace operators
|
||||
|
Reference in New Issue
Block a user