mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-23 03:37:15 +01:00
using PolicyRule::getTagValue() in compilers
This commit is contained in:
parent
ea8b6b1292
commit
ef5c0e6327
@ -290,7 +290,8 @@ string PolicyCompiler_ipt::PrintRule::_printTarget(PolicyRule *rule)
|
||||
|
||||
if (target=="MARK")
|
||||
{
|
||||
ostr << " --set-mark " << ruleopt->getStr("tagvalue");
|
||||
// ostr << " --set-mark " << ruleopt->getStr("tagvalue");
|
||||
ostr << " --set-mark " << rule->getTagValue();
|
||||
}
|
||||
|
||||
if (target=="CONNMARK")
|
||||
|
||||
@ -281,7 +281,8 @@ void PolicyCompiler_pf::PrintRule::_printTag(PolicyRule *rule)
|
||||
FWOptions *ruleopt =rule->getOptionsObject();
|
||||
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user