Fix disruptive actions execution

This commit is contained in:
Felipe Zimmerle
2015-09-16 19:42:26 -03:00
parent 081fe235ad
commit 5228b685bf
15 changed files with 304 additions and 16 deletions

View File

@@ -23,12 +23,14 @@
#include "actions/block.h"
#include "actions/chain.h"
#include "actions/deny.h"
#include "actions/redirect.h"
#include "actions/status.h"
#include "actions/rule_id.h"
#include "actions/phase.h"
#include "actions/severity.h"
#include "actions/capture.h"
#include "actions/pass.h"
@@ -82,6 +84,12 @@ Action *Action::instantiate(const std::string& name) {
if (name == "capture") {
return new Capture(name);
}
if (name == "pass") {
return new Pass(name);
}
if (name == "deny") {
return new Deny(name);
}
return new Action(name);
}