mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Using run time string on the operators
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#define SRC_OPERATORS_IP_MATCH_F_H_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/operators/ip_match_from_file.h"
|
||||
|
||||
@@ -26,10 +28,8 @@ namespace operators {
|
||||
|
||||
class IpMatchF : public IpMatchFromFile {
|
||||
public:
|
||||
IpMatchF(std::string op, std::string param, bool negation)
|
||||
: IpMatchFromFile(op, param, negation) { }
|
||||
explicit IpMatchF(std::string param)
|
||||
: IpMatchFromFile("IpMatchFromF", param) { }
|
||||
explicit IpMatchF(std::unique_ptr<RunTimeString> param)
|
||||
: IpMatchFromFile(std::move(param)) { }
|
||||
};
|
||||
|
||||
} // namespace operators
|
||||
|
Reference in New Issue
Block a user