Adds support to action CtlRuleRemoteTargetById

This commit is contained in:
Felipe Zimmerle
2016-10-26 09:42:49 -03:00
parent 9245369a54
commit 161cc36acf
8 changed files with 200 additions and 0 deletions

View File

@@ -357,6 +357,22 @@ bool Rule::evaluate(Transaction *trasn) {
if (ignoreVariable) {
continue;
}
for (auto &i : trasn->m_ruleRemoteTargetById) {
int id = i.first;
std::string args = i.second;
if (rule_id != id) {
continue;
}
if (args == v->m_key) {
trasn->debug(9, "Variable: " + v->m_key +
" was excluded by ruleRemoteTargetById...");
ignoreVariable = true;
break;
}
}
if (ignoreVariable) {
continue;
}
std::string value = v->m_value;
int none = 0;