mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-22 19:27:13 +01:00
fixed bug with missing COMMIT after mangle table rules
This commit is contained in:
parent
70a46a1f8c
commit
eb24dfcb85
@ -1,3 +1,11 @@
|
||||
2008-07-18 Vadim Kurland <vadim@vk.crocodile.org>
|
||||
|
||||
* ipt.cpp (main): fixed bug (no #): if generated script used
|
||||
iptables-restore and if there were automatically generated rules
|
||||
in the magle table, for example for the "clamp MSS to MTU" rule,
|
||||
but no other rules in the mangle table, compiler would not add
|
||||
COMMIT.
|
||||
|
||||
2008-07-17 Vadim Kurland <vadim@vk.crocodile.org>
|
||||
|
||||
* PolicyCompiler_ipt.cpp (prepareForMultiport::processNext): fixed
|
||||
|
||||
@ -688,7 +688,9 @@ _("Dynamic interface %s should not have an IP address object attached to it. Thi
|
||||
{
|
||||
m.compile();
|
||||
m.epilog();
|
||||
|
||||
|
||||
long m_str_pos = m_str.tellp();
|
||||
|
||||
if (policy->isTop())
|
||||
{
|
||||
m_str << "# ================ Table 'mangle', "
|
||||
@ -709,6 +711,10 @@ _("Dynamic interface %s should not have an IP address object attached to it. Thi
|
||||
}
|
||||
|
||||
m_str << m.getCompiledScript();
|
||||
}
|
||||
|
||||
if (m_str_pos!=m_str.tellp())
|
||||
{
|
||||
m_str << m.commit();
|
||||
m_str << endl;
|
||||
empty_output = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user