mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-14 17:09:11 +02:00
fixed bug with missing COMMIT after mangle table rules
This commit is contained in:
@@ -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>
|
2008-07-17 Vadim Kurland <vadim@vk.crocodile.org>
|
||||||
|
|
||||||
* PolicyCompiler_ipt.cpp (prepareForMultiport::processNext): fixed
|
* PolicyCompiler_ipt.cpp (prepareForMultiport::processNext): fixed
|
||||||
|
|||||||
+7
-1
@@ -688,7 +688,9 @@ _("Dynamic interface %s should not have an IP address object attached to it. Thi
|
|||||||
{
|
{
|
||||||
m.compile();
|
m.compile();
|
||||||
m.epilog();
|
m.epilog();
|
||||||
|
|
||||||
|
long m_str_pos = m_str.tellp();
|
||||||
|
|
||||||
if (policy->isTop())
|
if (policy->isTop())
|
||||||
{
|
{
|
||||||
m_str << "# ================ Table 'mangle', "
|
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();
|
m_str << m.getCompiledScript();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_str_pos!=m_str.tellp())
|
||||||
|
{
|
||||||
m_str << m.commit();
|
m_str << m.commit();
|
||||||
m_str << endl;
|
m_str << endl;
|
||||||
empty_output = false;
|
empty_output = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user