mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 15:41:41 +02:00
using PolicyRule::getTagValue() in compilers
This commit is contained in:
@@ -290,7 +290,8 @@ string PolicyCompiler_ipt::PrintRule::_printTarget(PolicyRule *rule)
|
|||||||
|
|
||||||
if (target=="MARK")
|
if (target=="MARK")
|
||||||
{
|
{
|
||||||
ostr << " --set-mark " << ruleopt->getStr("tagvalue");
|
// ostr << " --set-mark " << ruleopt->getStr("tagvalue");
|
||||||
|
ostr << " --set-mark " << rule->getTagValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target=="CONNMARK")
|
if (target=="CONNMARK")
|
||||||
|
|||||||
@@ -281,7 +281,8 @@ void PolicyCompiler_pf::PrintRule::_printTag(PolicyRule *rule)
|
|||||||
FWOptions *ruleopt =rule->getOptionsObject();
|
FWOptions *ruleopt =rule->getOptionsObject();
|
||||||
|
|
||||||
if (rule->getAction() == PolicyRule::Tag)
|
if (rule->getAction() == PolicyRule::Tag)
|
||||||
compiler->output << "tag " << ruleopt->getStr("tagvalue") << " ";
|
compiler->output << "tag " << rule->getTagValue() << " ";
|
||||||
|
// compiler->output << "tag " << ruleopt->getStr("tagvalue") << " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
void PolicyCompiler_pf::PrintRule::_printDirection(PolicyRule *rule)
|
void PolicyCompiler_pf::PrintRule::_printDirection(PolicyRule *rule)
|
||||||
|
|||||||
Reference in New Issue
Block a user